Skip to content

Deploy site

Deploy site #54

Workflow file for this run

name: Deploy site
on:
workflow_dispatch:
workflow_run:
workflows: [Release]
types: [completed]
branches: [main, master]
permissions:
pages: write
id-token: write
jobs:
build-site:
uses: ./.github/workflows/_build-site.yml
deploy-site:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build-site
steps:
- name: Download site
uses: actions/cache/restore@v4
with:
path: ./docs
key: docs-${{ needs.build-site.outputs.version }}-${{ github.run_id }}
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4