2023-06-10 16:06:01 +02:00
|
|
|
name: Release Artifacts
|
2023-06-10 16:22:35 +02:00
|
|
|
on: release
|
2023-06-10 16:06:01 +02:00
|
|
|
jobs:
|
2023-06-10 18:39:36 +02:00
|
|
|
push:
|
2023-06-10 16:06:01 +02:00
|
|
|
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
|
2023-06-10 18:44:02 +02:00
|
|
|
run: ./gradlew clean createExe
|
2023-06-10 16:06:01 +02:00
|
|
|
|
2023-06-10 18:39:36 +02:00
|
|
|
- name: Upload binaries to release
|
|
|
|
uses: svenstaro/upload-release-action@v2
|
2023-06-10 16:07:20 +02:00
|
|
|
with:
|
2023-06-10 18:39:36 +02:00
|
|
|
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
|
2023-06-10 16:07:20 +02:00
|
|
|
with:
|
2023-06-10 18:39:36 +02:00
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
file: ./build/libs/S-PDF*.jar
|
|
|
|
asset_name: S-PDF.jar
|
|
|
|
tag: ${{ github.ref }}
|
|
|
|
|
|
|
|
|