Skip to content

Add auto deploy workflow (#80) #1

Add auto deploy workflow (#80)

Add auto deploy workflow (#80) #1

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ src ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
# from dir
publish_dir: build

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

View workflow run for this annotation

GitHub Actions / Node.js CI

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 28, Col: 7): Unexpected value 'publish_dir' .github/workflows/deploy.yml (Line: 30, Col: 7): Unexpected value 'publish_branch'
# to branch
publish_branch: master