-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.13 KB
/
deploy-docs.yml
File metadata and controls
46 lines (38 loc) · 1.13 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
name: deploy-docs
on:
workflow_dispatch:
inputs:
release_tag:
description: 'Release tag to deploy (e.g. wxPython-4.2.5)'
required: true
type: string
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download docs asset from Phoenix release
run: |
ASSET_URL=$(curl -s "https://api.github.com/repos/wxWidgets/Phoenix/releases/tags/${{ inputs.release_tag }}" \
| jq -r '.assets[] | select(.name | startswith("wxPython-docs-")) | .browser_download_url')
curl -L -o wxPython-docs.tar.gz "$ASSET_URL"
- name: Extract docs
run: |
mkdir html
tar -xzf wxPython-docs.tar.gz --strip-components=3 -C html
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4