Incognito-Wiki/.github/workflows/deploy.yml
msa46 bcb8dcfe2a
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
fix: resolve final Starlight migration review
2026-08-02 18:59:28 +02:00

38 lines
934 B
YAML

# Optional GitHub-mirror deployment. Forgejo ignores this GitHub-specific
# workflow, and the repository does not rely on it for validation or deployment.
name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Check out the mirror
uses: actions/checkout@v7
- name: Build and upload the Pages artifact
uses: withastro/action@v6
with:
node-version: 22.22.3
env:
SITE: ${{ vars.SITE_URL }}
BASE: ${{ vars.BASE_PATH }}
deploy:
permissions:
pages: write
id-token: write
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@v5