This repository was archived by the owner on Nov 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +57
-1
lines changed Expand file tree Collapse file tree 2 files changed +57
-1
lines changed Original file line number Diff line number Diff line change 1+ name : release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ defaults :
9+ run :
10+ shell : bash
11+
12+ jobs :
13+ build-web :
14+ name : build web
15+ uses : lib-ruby-parser/wasm-bindings/.github/workflows/shared-build-and-test.yml@master
16+ with :
17+ node : ' 15'
18+ target : no-modules
19+ env : web
20+
21+ build-node :
22+ name : build node
23+ uses : lib-ruby-parser/wasm-bindings/.github/workflows/shared-build-and-test.yml@master
24+ with :
25+ node : ' 15'
26+ target : nodejs
27+ env : nodejs
28+
29+ create-release :
30+ needs : ['build-web', 'build-node']
31+ name : create release
32+ runs-on : ubuntu-latest
33+ steps :
34+ - name : checkout
35+ uses : actions/checkout@v2
36+
37+ - uses : actions/download-artifact@v2
38+ with : { name: web-lib-ruby-parser.js }
39+ - uses : actions/download-artifact@v2
40+ with : { name: web-lib-ruby-parser.wasm }
41+ - uses : actions/download-artifact@v2
42+ with : { name: nodejs-lib-ruby-parser.js }
43+ - uses : actions/download-artifact@v2
44+ with : { name: nodejs-lib-ruby-parser.wasm }
45+
46+ - name : show artifacts
47+ run : ls -l
48+
49+ - name : release
50+ uses : ncipollo/release-action@v1
51+ with :
52+ allowUpdates : true
53+ artifactErrorsFailBuild : true
54+ artifacts : " web-lib-ruby-parser.*,nodejs-lib-ruby-parser.*"
55+ token : ${{ secrets.GITHUB_TOKEN }}
56+
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ defaults:
2424
2525jobs :
2626 build-and-test :
27- name : build and upload ${{ inputs.target }}
27+ name : build, test and upload ${{ inputs.target }}
2828 runs-on : ubuntu-latest
2929 env :
3030 TARGET : ${{ inputs.target }}
You can’t perform that action at this time.
0 commit comments