25 lines
493 B
YAML
25 lines
493 B
YAML
# Inspired by https://github.com/actions/starter-workflows/blob/main/pages/mdbook.yml
|
|
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches: [$default-branch]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
needs: build
|
|
steps:
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v2
|