From 67dd3cf0e3cc3f14c6a5ca4ad5421a08b4fc2691 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 10 Jun 2023 17:54:50 +0100 Subject: [PATCH] Update releaseArtifacts.yml --- .github/workflows/releaseArtifacts.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/releaseArtifacts.yml b/.github/workflows/releaseArtifacts.yml index 593171ec..5cae78c0 100644 --- a/.github/workflows/releaseArtifacts.yml +++ b/.github/workflows/releaseArtifacts.yml @@ -1,5 +1,8 @@ name: Release Artifacts -on: release +on: + push: + tags: + - '*' jobs: push: runs-on: ubuntu-latest @@ -25,13 +28,19 @@ jobs: file: ./build/launch4j/Stirling-PDF.exe asset_name: Stirling-PDF.exe tag: ${{ github.ref }} - + overwrite: true + + - name: Get version number + id: versionNumber + run: echo "::set-output name=versionNumber::$(./gradlew printVersion --quiet | tail -1)" + - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ./build/libs/S-PDF*.jar + file: ./build/libs/S-PDF-${{ steps.versionNumber.outputs.versionNumber }}.jar asset_name: S-PDF.jar tag: ${{ github.ref }} + overwrite: true