File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed
Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change 1- name : Build, Test
1+ name : Build, Test and Release
22
33on :
44 push :
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 }}
You can’t perform that action at this time.
0 commit comments