github action #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Github Pages | ||
on: | ||
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 |