Skip to content

set up autodeploy

set up autodeploy #1

Workflow file for this run

name: Deploy main
on:
push:
branches:
- main
- staging
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on:

Check failure on line 15 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy main

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 15, Col: 13): Unexpected value ''
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npm run build
- run: mv dist _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2