Skip to content

Commit 9fe0da2

Browse files
committed
WIP
1 parent 3ed768d commit 9fe0da2

File tree

1 file changed

+17
-16
lines changed

1 file changed

+17
-16
lines changed

.github/workflows/gh-pages.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@ on:
66
- main # Set a branch name to trigger deployment
77

88
jobs:
9-
deploy:
9+
test:
10+
name: Test
1011
runs-on: ubuntu-latest
11-
concurrency:
12-
group: ${{ github.workflow }}-${{ github.ref }}
1312
steps:
1413
- name: 🛑 Cancel Previous Runs
1514
uses: styfle/[email protected]
@@ -25,19 +24,14 @@ jobs:
2524
- name: 📥 Download deps
2625
uses: bahmutov/npm-install@v1
2726

28-
- name: 🍼 Create pages build
29-
run: npm run deploy:pages
30-
31-
- name: 🥅 Deploy to GH-Pages
32-
uses: peaceiris/actions-gh-pages@v3
33-
if: ${{ github.ref == 'refs/heads/main' }}
34-
with:
35-
github_token: ${{ secrets.GITHUB_TOKEN }}
36-
publish_dir: ./out
27+
- name: ⚡ Run test
28+
run: npm test
3729

38-
test:
39-
name: Test
30+
deploy:
4031
runs-on: ubuntu-latest
32+
needs: [test]
33+
concurrency:
34+
group: ${{ github.workflow }}-${{ github.ref }}
4135
steps:
4236
- name: 🛑 Cancel Previous Runs
4337
uses: styfle/[email protected]
@@ -53,5 +47,12 @@ jobs:
5347
- name: 📥 Download deps
5448
uses: bahmutov/npm-install@v1
5549

56-
- name: ⚡ Run test
57-
run: npm test
50+
- name: 🍼 Create pages build
51+
run: npm run deploy:pages
52+
53+
- name: 🥅 Deploy to GH-Pages
54+
uses: peaceiris/actions-gh-pages@v3
55+
if: ${{ github.ref == 'refs/heads/main' }}
56+
with:
57+
github_token: ${{ secrets.GITHUB_TOKEN }}
58+
publish_dir: ./out

0 commit comments

Comments
 (0)