File tree Expand file tree Collapse file tree 4 files changed +42
-2
lines changed
Expand file tree Collapse file tree 4 files changed +42
-2
lines changed Original file line number Diff line number Diff line change 66 - v*.*.*
77
88jobs :
9+ check-workflows :
10+ uses : ./.github/workflows/check-workflows.yml
11+
12+ build-artifacts :
13+ needs : check-workflows
14+ uses : ./.github/workflows/windows-build.yml
15+ with :
16+ upload-artifacts : true
17+
918 create-release :
10- runs-on : windows-latest
19+ needs : build-artifacts
20+ runs-on : ubuntu-latest
21+ permissions :
22+ contents : write
1123 env :
1224 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
1325
1426 steps :
1527 - uses : actions/checkout@v4
1628
1729 - name : Create a Release
18- run : gh release create ${{ github.ref }} -F ReleaseNote.md
30+ run : gh release create ${{ github.ref }} -F ReleaseNote.md
31+
32+ - name : Download cobj.exe
33+ uses : actions/download-artifact@v4
34+ with :
35+ name : cobj.exe
36+
37+ - name : Download libcobj.jar
38+ uses : actions/download-artifact@v4
39+ with :
40+ name : libcobj.jar
41+
42+ - name : Publish artifacts
43+ run : |
44+ gh release upload ${{ github.ref_name }} cobj.exe --clobber
45+ gh release upload ${{ github.ref_name }} libcobj.jar --clobber
46+ gh release upload ${{ github.ref_name }} config/default.conf --clobber
47+
Original file line number Diff line number Diff line change @@ -103,6 +103,8 @@ jobs:
103103 strategy :
104104 fail-fast : false
105105 uses : ./.github/workflows/windows-build.yml
106+ with :
107+ upload-artifacts : true
106108
107109 windows-test :
108110 needs : windows-build
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ jobs:
101101 strategy :
102102 fail-fast : false
103103 uses : ./.github/workflows/windows-build.yml
104+ with :
105+ upload-artifacts : true
104106
105107 windows-test :
106108 needs : windows-build
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: build opensource COBOL 4J on Windows
22
33on :
44 workflow_call :
5+ inputs :
6+ upload-artifacts :
7+ description : ' Upload artifacts'
8+ required : true
9+ type : boolean
510
611permissions :
712 contents : read
@@ -32,12 +37,14 @@ jobs:
3237 run : msbuild /p:Configuration=Release /p:AdditionalIncludePaths=./:./cobj/:./win:./lib win/opensourcecobol4j.sln
3338
3439 - name : Upload libcobj.jar
40+ if : ${{inputs.upload-artifacts}}
3541 uses : actions/upload-artifact@v4
3642 with :
3743 name : libcobj.jar
3844 path : libcobj/app/build/libs/libcobj.jar
3945
4046 - name : Upload cobj.exe
47+ if : ${{inputs.upload-artifacts}}
4148 uses : actions/upload-artifact@v4
4249 with :
4350 name : cobj.exe
You can’t perform that action at this time.
0 commit comments