Skip to content

Commit 7f74cbf

Browse files
committed
fix: added generated page data as build artefacts
1 parent 9e2431f commit 7f74cbf

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,18 @@ jobs:
2929
python src/scripts/generate_page.py
3030
python src/scripts/generate_workflow_md.py
3131
32+
- name: Upload page data
33+
uses: actions/upload-artifact@v4
34+
with:
35+
name: generated-data
36+
path: static/data/*.json
37+
38+
- name: Upload workflow data
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: generated-workflows
42+
path: docs/workflows/all_workflows/*.md
43+
3244
build:
3345
name: Build Docusaurus
3446
runs-on: ubuntu-latest
@@ -37,6 +49,19 @@ jobs:
3749
- uses: actions/checkout@v6
3850
with:
3951
fetch-depth: 0
52+
53+
- name: Download generated data
54+
uses: actions/download-artifact@v4
55+
with:
56+
name: generated-data
57+
path: static/data/
58+
59+
- name: Download generated workflows
60+
uses: actions/download-artifact@v4
61+
with:
62+
name: generated-workflows
63+
path: docs/workflows/all_workflows/
64+
4065
- uses: actions/setup-node@v6
4166
with:
4267
node-version: 18

.github/workflows/test-deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,18 @@ jobs:
2727
python src/scripts/generate_page.py
2828
python src/scripts/generate_workflow_md.py
2929
30+
- name: Upload page data
31+
uses: actions/upload-artifact@v4
32+
with:
33+
name: generated-data
34+
path: static/data/*.json
35+
36+
- name: Upload workflow data
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: generated-workflows
40+
path: docs/workflows/all_workflows/*.md
41+
3042
test-deploy:
3143
name: Test deployment
3244
runs-on: ubuntu-latest
@@ -35,12 +47,26 @@ jobs:
3547
- uses: actions/checkout@v6
3648
with:
3749
fetch-depth: 0
50+
51+
- name: Download generated data
52+
uses: actions/download-artifact@v4
53+
with:
54+
name: generated-data
55+
path: static/data/
56+
57+
- name: Download generated workflows
58+
uses: actions/download-artifact@v4
59+
with:
60+
name: generated-workflows
61+
path: docs/workflows/all_workflows/
62+
3863
- uses: actions/setup-node@v6
3964
with:
4065
node-version: 18
4166
cache: npm
4267

4368
- name: Install dependencies
4469
run: npm ci
70+
4571
- name: Test build website
4672
run: npm run build

0 commit comments

Comments
 (0)