Skip to content

Commit f4853c4

Browse files
committed
automatically publish coatjava build to github release assets
1 parent 7842080 commit f4853c4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/maven.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,28 @@ jobs:
133133
- name: test run-groovy
134134
run: coatjava/bin/run-groovy validation/advanced-tests/test-run-groovy.groovy
135135

136+
release:
137+
needs: [ build ]
138+
runs-on: ubuntu-latest
139+
steps:
140+
- uses: actions/checkout@v4
141+
- uses: actions/download-artifact@v4
142+
with:
143+
name: build_ubuntu-latest
144+
- name: Release
145+
uses: softprops/action-gh-release@v2
146+
if: startsWith(github.ref, 'refs/tags/')
147+
with:
148+
files: coatjava.tar.gz
149+
env:
150+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
151+
136152
final:
137153
needs:
138154
- build
139155
- test_coatjava
140156
- test_run-groovy
157+
- release
141158
runs-on: ubuntu-latest
142159
steps:
143160
- name: pass

0 commit comments

Comments
 (0)