Skip to content

Commit 08c5ae2

Browse files
authored
Update build.yml
1 parent 6190c94 commit 08c5ae2

File tree

1 file changed

+27
-2
lines changed

1 file changed

+27
-2
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build, Test
1+
name: Build, Test and Release
22

33
on:
44
push:
@@ -26,4 +26,29 @@ jobs:
2626
architecture: x64
2727

2828
- name: Build
29-
run: mvn package
29+
run: mvn package
30+
31+
- name: Archive Folder
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: artifact
35+
path: ${{github.workspace}}/target/*.jar
36+
37+
publish-release:
38+
needs: build
39+
runs-on: ubuntu-latest
40+
41+
steps:
42+
- name: Download Artifact
43+
uses: actions/download-artifact@v4
44+
with:
45+
name: artifact
46+
path: ${{github.workspace}}
47+
48+
- name: Create Release
49+
id: create_release
50+
uses: softprops/action-gh-release@v1
51+
if: startsWith(github.ref, 'refs/tags/')
52+
with:
53+
files: ${{ github.workspace }}/*.jar
54+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)