Skip to content

Commit 46ef3dc

Browse files
publish libcobj.jar to GitHub Package on release (#548)
1 parent 8f2e0b6 commit 46ef3dc

File tree

2 files changed

+26
-36
lines changed

2 files changed

+26
-36
lines changed

.github/workflows/create-release.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,29 @@ jobs:
4444
gh release upload ${{ github.ref_name }} cobj.exe --clobber
4545
gh release upload ${{ github.ref_name }} libcobj.jar --clobber
4646
gh release upload ${{ github.ref_name }} config/default.conf --clobber
47-
47+
48+
# publish libcobj.jar to GitHub Packages
49+
publish:
50+
needs: check-workflows
51+
runs-on: ubuntu-latest
52+
permissions:
53+
contents: read
54+
packages: write
55+
steps:
56+
- uses: actions/checkout@v4
57+
- run: |
58+
cd ../
59+
mv opensourcecobol4j/* .
60+
mv libcobj/* opensourcecobol4j
61+
- uses: actions/setup-java@v4
62+
with:
63+
java-version: '11'
64+
distribution: 'temurin'
65+
- name: Validate Gradle wrapper
66+
uses: gradle/wrapper-validation-action@v3
67+
- name: Publish package
68+
uses: gradle/gradle-build-action@v3
69+
with:
70+
arguments: publish
71+
env:
72+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish-libcobj.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)