From a93a89f3f0e05c15d1fbed6bd59e5e3de32120d9 Mon Sep 17 00:00:00 2001 From: Anthony Stirling <77850077+Frooodle@users.noreply.github.com> Date: Sat, 10 Jun 2023 15:06:01 +0100 Subject: [PATCH] github action for release upload --- .github/workflows/releaseArtifacts.yml | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/releaseArtifacts.yml diff --git a/.github/workflows/releaseArtifacts.yml b/.github/workflows/releaseArtifacts.yml new file mode 100644 index 00000000..3cb4e063 --- /dev/null +++ b/.github/workflows/releaseArtifacts.yml @@ -0,0 +1,36 @@ +name: Release Artifacts + +on: release +jobs: + push: + + runs-on: ubuntu-latest + steps: + + - uses: actions/checkout@v3.5.2 + + - name: Set up JDK 17 + uses: actions/setup-java@v3.11.0 + with: + java-version: '17' + distribution: 'temurin' + + - name: Grant execute permission for gradlew + run: chmod +x gradlew + + - name: Generate jar + run: ./gradlew clean createJar + + - name: Upload jar to release + uses: JasonEtco/upload-to-release@master + with: + args: ./build/libs/S-PDF*.jar application/java-archive + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Upload exe to release + uses: JasonEtco/upload-to-release@master + with: + args: ./build/launch4j/Stirling-PDF.exe application/vnd.microsoft.portable-executable + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file