Files
budget2.0/.github/workflows/pages.yml
T
Lucas Winther f02c452d6c
Continuous Integration / lint-and-test (push) Successful in 13s
Continuous Integration / docker-build-and-push (push) Successful in 35s
fix: nest legacy bills and stamp builds with commit
2026-09-30 14:35:29 +02:00

48 lines
1.1 KiB
YAML

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- run: bun test
- name: Build for the Pages subpath
env:
BUN_PUBLIC_BASE_PATH: /${{ github.event.repository.name }}/
BUILD_VERSION: ${{ github.sha }}
BUILD_REPOSITORY: https://github.com/${{ github.repository }}
run: bun run build
- name: Stop Pages from running the output through Jekyll
run: touch dist/.nojekyll
- uses: actions/upload-pages-artifact@v3
with:
path: dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v4