-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
61 lines (53 loc) · 1.63 KB
/
Copy pathmanage-dev-docs.yml
File metadata and controls
61 lines (53 loc) · 1.63 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Docs / Manage dev-docs versions
on:
workflow_dispatch:
inputs:
action:
description: "Action to perform"
required: true
type: choice
options:
- deploy-version
- delete-version
version_label:
description: "Version label to deploy or delete, e.g. 3.0"
required: true
type: string
git_tag:
description: "Git tag to check out for deploy-version, e.g. v3.0.0rc14. Ignored for delete-version."
required: false
type: string
mark_latest_release:
description: "Alias this version as latest-release and set /dev/ default to latest-release."
required: false
type: boolean
default: false
permissions:
contents: write
concurrency:
group: gh-pages-deploy
cancel-in-progress: false
jobs:
deploy-version:
if: inputs.action == 'deploy-version'
uses: ./.github/workflows/deploy-dev-docs-mike.yml
with:
action: deploy
version_label: ${{ inputs.version_label }}
git_tag: ${{ inputs.git_tag }}
aliases: ${{ inputs.mark_latest_release && 'latest-release' || '' }}
default_label: ${{ inputs.mark_latest_release && 'latest-release' || '' }}
python-version: "3.10"
config-file: dev-docs/mkdocs.yml
deploy-prefix: dev
secrets: inherit
delete-version:
if: inputs.action == 'delete-version'
uses: ./.github/workflows/deploy-dev-docs-mike.yml
with:
action: delete
version_label: ${{ inputs.version_label }}
python-version: "3.10"
config-file: dev-docs/mkdocs.yml
deploy-prefix: dev
secrets: inherit