File tree Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Expand file tree Collapse file tree 1 file changed +17
-16
lines changed Original file line number Diff line number Diff line change 6
6
- main # Set a branch name to trigger deployment
7
7
8
8
jobs :
9
- deploy :
9
+ test :
10
+ name : Test
10
11
runs-on : ubuntu-latest
11
- concurrency :
12
- group : ${{ github.workflow }}-${{ github.ref }}
13
12
steps :
14
13
- name : 🛑 Cancel Previous Runs
15
14
@@ -25,19 +24,14 @@ jobs:
25
24
- name : 📥 Download deps
26
25
uses : bahmutov/npm-install@v1
27
26
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
37
29
38
- test :
39
- name : Test
30
+ deploy :
40
31
runs-on : ubuntu-latest
32
+ needs : [test]
33
+ concurrency :
34
+ group : ${{ github.workflow }}-${{ github.ref }}
41
35
steps :
42
36
- name : 🛑 Cancel Previous Runs
43
37
53
47
- name : 📥 Download deps
54
48
uses : bahmutov/npm-install@v1
55
49
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
You can’t perform that action at this time.
0 commit comments