Files

44 lines
1.1 KiB
YAML

name: Deploy to GitHub Pages
# Legacy branch-based Pages builds stalled on this repo (stuck rebuilding an old
# commit and never advancing to main's tip). This Actions-based deploy publishes
# the repo root on every push to main — reliable and re-runnable via the Actions
# tab. The CNAME file in the repo root preserves the bauhaus.such.software domain.
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment; a newer push supersedes an in-flight one.
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload site artifact (repo root)
uses: actions/upload-pages-artifact@v3
with:
path: .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4