From b4a9d1ac18488916e361b87471d0f6abb7a0565a Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 10 Jun 2023 17:39:36 +0100 Subject: [PATCH] Update releaseArtifacts.yml --- .github/workflows/releaseArtifacts.yml | 28 +++++++++++++++----------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/releaseArtifacts.yml b/.github/workflows/releaseArtifacts.yml index 424b1da4..cb76da01 100644 --- a/.github/workflows/releaseArtifacts.yml +++ b/.github/workflows/releaseArtifacts.yml @@ -1,7 +1,7 @@ name: Release Artifacts on: release jobs: - releaseJob: + push: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3.5.2 @@ -18,16 +18,20 @@ jobs: - name: Generate jar run: ./gradlew clean createJar - - uses: Shopify/upload-to-release@v1 + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 with: - name: Stirling-PDF.jar - path: ./build/libs/S-PDF*.jar - repo-token: ${{ secrets.GITHUB_TOKEN }} - content-type: application/java-archive + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./build/launch4j/Stirling-PDF.exe + asset_name: Stirling-PDF.exe + tag: ${{ github.ref }} + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./build/libs/S-PDF*.jar + asset_name: S-PDF.jar + tag: ${{ github.ref }} + - - uses: Shopify/upload-to-release@v1 - with: - name: Stirling-PDF.exe - path: ./build/launch4j/Stirling-PDF.exe - repo-token: ${{ secrets.GITHUB_TOKEN }} - content-type: application/vnd.microsoft.portable-executable