46 lines
989 B
YAML
46 lines
989 B
YAML
name: Deploy static content to Pages
|
|
|
|
on:
|
|
push:
|
|
branches: ['main', 'master']
|
|
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: 'pages'
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
BASE: /tramtrack/
|
|
VITE_ROUTER: hash
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
- run: bun install --include=dev
|
|
- name: Check project
|
|
run: bun run check:all
|
|
- name: Build project
|
|
run: bun run build-only
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v4
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: './dist'
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|