Skip to content

Refactor data input element (again) #339

Refactor data input element (again)

Refactor data input element (again) #339

Workflow file for this run

name: Build and deploy to gh-pages
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-frontend:
permissions:
contents: write
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- run: pnpm install
- run: pnpm run build
env:
BASE_PATH: '/${{ github.event.repository.name }}'
- uses: actions/upload-pages-artifact@v3
with:
path: 'frontend/build/'
deploy-frontend:
if: github.ref == 'refs/heads/main'
needs: build-frontend
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/deploy-pages@v4
id: deployment