Update Demo #13
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: Build and deploy website | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: github-pages # Specify the environment to use the secrets in it | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: yarn install | |
- name: Build website | |
run: npm run build | |
- name: Deploy website | |
uses: peaceiris/[email protected] | |
with: | |
personal_token: ${{ secrets.ACTIONS_DEPLOY_KEY }} # Use personal_token instead of github_token | |
publish_dir: build |