Skip to content

Deploy to GitHub Pages #13

Deploy to GitHub Pages

Deploy to GitHub Pages #13

Workflow file for this run

name: Deploy to GitHub Pages
on:
workflow_run:
workflows: ["Version Bump and Release"]
types:
- completed
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install dependencies
working-directory: webapp
run: bun install
- name: Build
working-directory: webapp
env:
NODE_ENV: production
run: bun run build
- name: Add .nojekyll
run: touch webapp/build/.nojekyll
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: webapp/build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4