Skip to content

update build action #61

update build action

update build action #61

Workflow file for this run

name: Github Pages
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 21
- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true
- name: Build with pnpm
run: |
pnpm run pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: dist
deploy:
needs: build

Check failure on line 30 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / Github Pages

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 30, Col: 5): Required property is missing: runs-on
permissions:
pages: write
id-token: write
contents: read
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy GitHub Pages site
uses: actions/deploy-pages@v2
id: deployment