38 lines
934 B
YAML
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
|