Skip to content

ci: only run ci for demo repo, allow manual trigger #51

ci: only run ci for demo repo, allow manual trigger

ci: only run ci for demo repo, allow manual trigger #51

Workflow file for this run

name: Deploy to GitHub Pages
# Prerequisites:
# - Set 'baseUrl' in src/config.ts to your GitHub Pages URL
# - Set 'base' in astro.config.mjs to your repo name (for project sites)
# - Enable GitHub Pages in repo Settings → Pages → Source: "GitHub Actions"
on:
push:
branches: [master, main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
# Only auto-deploy for the original demo repository.
# Template users: Change 'brickfrog/ametrine' to 'your-username/your-repo' when ready to deploy.
if: github.repository == 'brickfrog/ametrine'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Build
run: bun run build
- name: Upload artifact
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:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4