Skip to content

github action

github action #1

name: Deploy to Github Pages
on:

Check failure on line 2 in .github/workflows/gh-pages-deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gh-pages-deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 2
push:
branches:
- main
jobs:
gh-pages-deploy:
name: Deploying to Github Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: Install packages
run: npm i
- name: Set Creds
run: git config user.name "GitHub Actions" && git config user.email "41898282+github-actions[bot]@users.noreply.github.com" # the name come from https://api.github.com/users/github-actions%5Bbot%5D
- name: Deploy
run: npm run deploy