Stirling-PDF/.github/workflows/releaseArtifacts.yml

35 lines
902 B
YAML
Raw Normal View History

2023-06-10 16:06:01 +02:00
name: Release Artifacts
2023-06-10 16:10:37 +02:00
on:
release: [created]
2023-06-10 16:06:01 +02:00
jobs:
2023-06-10 16:15:51 +02:00
releaseJob:
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
run: ./gradlew clean createJar
2023-06-10 16:21:54 +02:00
- uses: Shopify/upload-to-release@v1
2023-06-10 16:07:20 +02:00
with:
2023-06-10 16:21:54 +02:00
name: Stirling-PDF.jar
path: ./build/libs/S-PDF*.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
content-type: application/java-archive
2023-06-10 16:06:01 +02:00
2023-06-10 16:21:54 +02:00
- uses: Shopify/upload-to-release@v1
2023-06-10 16:07:20 +02:00
with:
2023-06-10 16:21:54 +02:00
name: Stirling-PDF.exe
path: ./build/launch4j/Stirling-PDF.exe
repo-token: ${{ secrets.GITHUB_TOKEN }}
content-type: application/vnd.microsoft.portable-executable