-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (54 loc) · 1.6 KB
/
docs.yml
File metadata and controls
64 lines (54 loc) · 1.6 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
62
63
64
name: Deploy GitHub Pages from upstream artifact
on:
repository_dispatch:
types: [ deploy_docs ]
workflow_dispatch:
inputs:
source_repo:
description: 'Source repository (owner/repo)'
required: true
run_id:
description: 'Workflow run ID to download artifact from'
required: true
ref:
description: 'Git ref that triggered the build (e.g., refs/tags/v1.2.3 or refs/heads/main)'
required: true
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-slim
steps:
- name: Checkout main
uses: actions/checkout@v6
- name: Checkout gh-pages
uses: actions/checkout@v6
with:
ref: gh-pages
path: deploy
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Download artifact
uses: actions/download-artifact@v4
with:
path: artifact
repository: '${{ github.event.client_payload.source_repo || inputs.source_repo }}'
name: acts-docs
run-id: ${{ github.event.client_payload.run_id || inputs.run_id }}
github-token: ${{ secrets.CROSS_REPO_ARTIFACT_READ }}
# - run: |
# ls -al
# ls -al artifact
- name: Deploy documentation
env:
GIT_REF: ${{ github.event.client_payload.ref || inputs.ref }}
run: |
uv run scripts/deploy_docs.py \
--ref "$GIT_REF" \
--source-dir artifact \
--deploy-dir deploy/docs
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: deploy/docs
target-folder: docs