Update deploy.yml #12
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] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 16.x | |
- name: Enable Corepack | |
run: | | |
corepack enable | |
- name: Configure Yarn | |
run: | | |
corepack prepare [email protected] --activate | |
yarn set version stable | |
yarn config set nodeLinker node-modules | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build | |
env: | |
PUBLIC_URL: https://lamda-lab.github.io | |
run: yarn build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build | |
force_orphan: trues |