Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
humbertodias authored Feb 15, 2024
1 parent 6190c94 commit 08c5ae2
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build, Test
name: Build, Test and Release

on:
push:
Expand Down Expand Up @@ -26,4 +26,29 @@ jobs:
architecture: x64

- name: Build
run: mvn package
run: mvn package

- name: Archive Folder
uses: actions/upload-artifact@v4
with:
name: artifact
path: ${{github.workspace}}/target/*.jar

publish-release:
needs: build
runs-on: ubuntu-latest

steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: artifact
path: ${{github.workspace}}

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ github.workspace }}/*.jar
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 08c5ae2

Please sign in to comment.