Skip to content

Update deploy.yml

Update deploy.yml #12

Workflow file for this run

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