File tree Expand file tree Collapse file tree 2 files changed +46
-12
lines changed Expand file tree Collapse file tree 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 1717 - name : Build
1818 run : yarn build
1919
20- - name : Upload Build Artifact
21- uses : actions/upload-artifact@v4
22- with :
23- name : build-artifact
24- path : build
25-
2620 lint :
2721 name : Lint
2822 runs-on : ubuntu-latest
4034 release :
4135 name : Release
4236 runs-on : ubuntu-latest
43- needs : build
37+ needs : [ build, lint]
4438
4539 steps :
4640 - uses : actions/create-github-app-token@v1
5852 - name : Setup
5953 uses : ./.github/actions/setup
6054
61- - name : Download Build Artifact
62- uses : actions/download-artifact@v4
63- with :
64- name : build-artifact
65-
6655 - name : Configure Git User
6756 run : |
6857 git config --global user.name "${GITHUB_ACTOR}"
You can’t perform that action at this time.
0 commit comments