Skip to content

Commit 822938c

Browse files
committed
Publish docs: download built latest leios design
1 parent 9bea6aa commit 822938c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- "**/*.d2"
77
- "site/**"
88
- "ui/**"
9+
- ".github/workflows/docs.yaml"
910
push:
1011
branches:
1112
- main
@@ -160,9 +161,33 @@ jobs:
160161
name: visualizer
161162
path: site/static/visualizer
162163

164+
- name: Find leios design build artifact
165+
id: leios-design-workflow
166+
uses: actions/github-script@v7
167+
with:
168+
script: |
169+
let res = await github.rest.actions.listWorkflowRuns({
170+
owner: context.repo.owner,
171+
repo: context.repo.repo,
172+
workflow_id: 'leios-design.yaml',
173+
branch: 'main',
174+
status: 'success'
175+
});
176+
return res.data.workflow_runs[0].id;
177+
178+
- name: 📥 Download built leios design
179+
uses: actions/download-artifact@v4
180+
with:
181+
github-token: ${{ secrets.GITHUB_TOKEN || github.token }}
182+
run-id: ${{steps.leios-design-workflow.outputs.result}}
183+
pattern: leios-design-pdf*
184+
merge-multiple: true
185+
path: site/static
186+
163187
- name: 🏗️ Build Docusaurus site
164188
working-directory: site
165189
run: |
190+
find static
166191
npm run build
167192
168193
- name: Verify Docusaurus build

0 commit comments

Comments
 (0)