File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,6 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
- should-deploy :
15
- name : Check if should deploy page
16
- runs-on : ubuntu-lastest
17
- if : github.event_name == 'push' || contains(github.ref, '/heads/master')
18
- steps :
19
- - name : Write output
20
- run : echo "deploy=true" >> "$GITHUB_OUTPUT"
21
-
22
14
lint :
23
15
name : Lint
24
16
runs-on : ubuntu-latest
@@ -49,14 +41,15 @@ jobs:
49
41
cache : yarn
50
42
- name : Install dependencies
51
43
run : yarn --immutable
52
- - name : Run typechecking
44
+ - name : Typecheck
53
45
continue-on-error : true
54
46
run : yarn run typecheck
55
47
56
48
build :
57
49
name : Build
58
50
runs-on : ubuntu-latest
59
- needs : lint
51
+ needs :
52
+ - lint
60
53
steps :
61
54
- name : Checkout
62
55
uses : actions/checkout@v4
@@ -72,10 +65,10 @@ jobs:
72
65
cache : yarn
73
66
- name : Install dependencies
74
67
run : yarn --immutable
75
- - name : Building
68
+ - name : Build
76
69
run : yarn run generate
77
70
- name : Upload artifact
78
- if : ${{ steps.should-deploy.outputs.deploy }}
71
+ if : ${{ github.event_name == 'push' || contains(github.ref, '/heads/master') }}
79
72
uses : actions/upload-pages-artifact@v3
80
73
with :
81
74
path : .output/public
85
78
runs-on : ubuntu-lastest
86
79
needs :
87
80
- build
88
- - should-deploy
81
+ if : ${{ github.event_name == 'push' || contains(github.ref, '/heads/master') }}
89
82
steps :
90
83
- name : Deploy artifact to GitHub Pages
91
84
uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments