Incognito-Wiki/.github/workflows/deploy.yml

38 lines
902 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:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
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:
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