Skip to content

Deploy to GitHub Pages #17

Deploy to GitHub Pages

Deploy to GitHub Pages #17

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_dispatch:
permissions:
contents: write
concurrency:
group: 'deploy'
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: https://lamda-uai.github.io
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 16.x
cache: 'yarn'
- name: Install dependencies
run: yarn
- name: Update Browserslist
run: npx update-browserslist-db@latest
- name: Build
run: |
PUBLIC_URL=https://lamda-uai.github.io yarn build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build