-
Notifications
You must be signed in to change notification settings - Fork 69
38 lines (33 loc) · 1.14 KB
/
deploy-github-pages.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Deploy docs to Github Pages
on:
push:
branches: [main, 'release/v*']
tags: ['v*']
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
uses: ./.github/workflows/build.yaml
with:
# Always use the default branch for building the documentation
# Otherwise, we might build our documentation with an old SMV version
ref: ${{ github.event.repository.default_branch }}
upload-documentation-artifacts: true
deploy-docs:
name: Deploy Docs to GitHub Pages
if: github.ref_protected == true
runs-on: ubuntu-latest
needs: [build]
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4