Skip to content

Deploy docs to GitHub Pages #61

Deploy docs to GitHub Pages

Deploy docs to GitHub Pages #61

Workflow file for this run

name: Deploy docs to GitHub Pages
on:
workflow_run:
workflows: ["Publish Snapshot", "Publish"]
types: [completed]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout your repository using git
uses: actions/checkout@v6
- name: Install, build, and upload your site
uses: withastro/action@v6
with:
path: ./docs
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