File tree 2 files changed +46
-12
lines changed 2 files changed +46
-12
lines changed Original file line number Diff line number Diff line change
1
+ name : pass-artifacts-to-next-jobs
2
+
3
+ on : workflow_dispatch
4
+
5
+ jobs :
6
+ build :
7
+ name : Build
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - name : Checkout
12
+ uses : actions/checkout@v4
13
+
14
+ - name : Setup
15
+ uses : ./.github/actions/setup
16
+
17
+ - name : Build
18
+ run : yarn build
19
+
20
+ - name : Upload Build Artifact
21
+ uses : actions/upload-artifact@v4
22
+ with :
23
+ name : build-artifact
24
+ path : build
25
+
26
+ run-build :
27
+ name : Run build
28
+ runs-on : ubuntu-latest
29
+ needs : build
30
+
31
+ steps :
32
+ - name : Checkout
33
+ uses : actions/checkout@v4
34
+
35
+ - name : Setup
36
+ uses : ./.github/actions/setup
37
+
38
+ - name : Download Build Artifact
39
+ uses : actions/download-artifact@v4
40
+ with :
41
+ name : build-artifact
42
+
43
+ - name : Run
44
+ # This assumes that your build artifacts is an index.js
45
+ run : node index.js
Original file line number Diff line number Diff line change 17
17
- name : Build
18
18
run : yarn build
19
19
20
- - name : Upload Build Artifact
21
- uses : actions/upload-artifact@v4
22
- with :
23
- name : build-artifact
24
- path : build
25
-
26
20
lint :
27
21
name : Lint
28
22
runs-on : ubuntu-latest
40
34
release :
41
35
name : Release
42
36
runs-on : ubuntu-latest
43
- needs : build
37
+ needs : [ build, lint]
44
38
45
39
steps :
46
40
- uses : actions/create-github-app-token@v1
58
52
- name : Setup
59
53
uses : ./.github/actions/setup
60
54
61
- - name : Download Build Artifact
62
- uses : actions/download-artifact@v4
63
- with :
64
- name : build-artifact
65
-
66
55
- name : Configure Git User
67
56
run : |
68
57
git config --global user.name "${GITHUB_ACTOR}"
You can’t perform that action at this time.
0 commit comments