Skip to content

fix workflow build

fix workflow build #27

name: Deploy frontend to GitHub Pages
on:
push:
branches: [main]
paths:
- 'frontend/**'
- '.github/workflows/deploy-frontend.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
env:
NEXT_PUBLIC_FRONTEND_URL: 'https://collaboratory.semanticscience.org'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
# cache: yarn
# cache-dependency-path: frontend/yarn.lock
- name: Install dependencies
run: |
cd frontend
yarn
# yarn install --frozen-lockfile
- name: Build website
run: |
cd frontend
yarn build
- name: Setup Pages
id: pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './frontend/out'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4