Skip to content

Commit ccce98c

Browse files
committed
ci: update artifact handling
1 parent d556a54 commit ccce98c

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

.github/workflows/_tests.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,14 @@ jobs:
4949

5050
- run: pnpm build:testing
5151

52-
- name: Upload artifact
52+
- name: 🔺 Upload playground artifacts
5353
if: github.ref == 'refs/heads/main'
54-
uses: actions/upload-pages-artifact@v1
54+
uses: actions/upload-artifact@v3
5555
with:
56+
name: build_distribution_testing
5657
path: testing/dist
58+
if-no-files-found: error
59+
retention-days: 1
5760

5861
unit_tests:
5962
name: 🧪 Unit Tests

.github/workflows/publish-playground.yml

+12
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ jobs:
3131
steps:
3232
- uses: actions/checkout@v3
3333

34+
- name: 🔻 Download playground artifacts
35+
uses: actions/download-artifact@v3
36+
with:
37+
name: build_distribution_testing
38+
path: testing/dist
39+
40+
- name: Upload Page artifact
41+
if: github.ref == 'refs/heads/main'
42+
uses: actions/upload-pages-artifact@v1
43+
with:
44+
path: testing/dist
45+
3446
- name: Deploy to GitHub Pages
3547
id: deployment
3648
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)