-
Notifications
You must be signed in to change notification settings - Fork 31
46 lines (38 loc) · 989 Bytes
/
build.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
39
40
41
42
43
44
45
# Making changes? https://github.com/nektos/act may help you test locally
name: "Publish main branch"
# TODO: Support multiple versions in parallel
on:
repository_dispatch:
types: [rebuild-docs]
push:
branches:
- "master"
- "main/*"
concurrency:
group: "${{ github.workflow }}"
cancel-in-progress: true
jobs:
build:
uses: "./.github/workflows/build-artifact.yaml"
publish:
needs: "build"
runs-on: "ubuntu-latest"
permissions:
pages: "write"
id-token: "write"
environment:
name: "github-pages"
url: "${{ steps.deployment.outputs.page_url }}"
steps:
- name: "artifact / restore"
uses: "actions/download-artifact@v4"
with:
name: "docs-html"
path: "build/html"
- name: "artifact / repackage"
uses: "actions/upload-pages-artifact@v3"
with:
path: "build/html"
- name: "deploy / pages"
id: "deployment"
uses: "actions/deploy-pages@v4"