Skip to content

Commit 298ed1d

Browse files
committed
ci: rework pipeline to include all required steps
1 parent aa70841 commit 298ed1d

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.github/workflows/_tests.yml

+6
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626

2727

2828
build_playground:
29+
needs: build
2930
name: 🛝 Build Playground
3031
runs-on: ubuntu-latest
3132
steps:
@@ -35,6 +36,11 @@ jobs:
3536

3637
- run: pnpm build:testing
3738

39+
- name: Upload artifact
40+
uses: actions/upload-pages-artifact@v1
41+
with:
42+
path: './testing/dist/'
43+
3844
unit_tests:
3945
name: 🧪 Unit Tests
4046
runs-on: ubuntu-latest

.github/workflows/build.yml

+3-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# This is a basic workflow to help you get started with Actions
2-
3-
name: CI
1+
name: 🛝 Publish Playground
42

53
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
64
permissions:
@@ -23,7 +21,8 @@ jobs:
2321
uses: ./.github/workflows/_tests.yml
2422
secrets: inherit
2523

26-
build:
24+
publish:
25+
name: 🛝 Publish Playground to GitHub Pages
2726
# The type of runner that the job will run on
2827
runs-on: ubuntu-latest
2928
needs: tests
@@ -32,15 +31,6 @@ jobs:
3231
steps:
3332
- uses: actions/checkout@v3
3433

35-
- uses: ./.github/actions/setup
36-
37-
- run: pnpm build:testing
38-
39-
- name: Upload artifact
40-
uses: actions/upload-pages-artifact@v1
41-
with:
42-
path: './testing/dist/'
43-
4434
- name: Deploy to GitHub Pages
4535
id: deployment
4636
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)