diff options
| author | Abe Pazos <abe@hamoid.com> | 2023-03-30 10:03:29 +0200 |
|---|---|---|
| committer | Edwin Jakobs <edwin@rndr.studio> | 2023-03-30 18:34:06 +0200 |
| commit | 6210723148e959f07f1045d8f1e0ce8ff1c0d592 (patch) | |
| tree | 341aed03e28da79c4a60f7a08acf957e3080cf23 /.github/workflows/publish-binaries.yaml | |
| parent | 2e9da10d4d0318635e20f8176933e7fcd142fd92 (diff) | |
| download | art-playground-openrndr-6210723148e959f07f1045d8f1e0ce8ff1c0d592.tar.gz art-playground-openrndr-6210723148e959f07f1045d8f1e0ce8ff1c0d592.zip | |
Combine 3 publish github actions into one
Diffstat (limited to '.github/workflows/publish-binaries.yaml')
| -rw-r--r-- | .github/workflows/publish-binaries.yaml | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/.github/workflows/publish-binaries.yaml b/.github/workflows/publish-binaries.yaml new file mode 100644 index 0000000..9ecb4c7 --- /dev/null +++ b/.github/workflows/publish-binaries.yaml @@ -0,0 +1,58 @@ +name: Publish macOS binaries + +on: + push: + tags: + - v1.* + - v1.*.* + +permissions: + contents: write + +# Required to make env var work on Windows +defaults: + run: + shell: bash + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v1 + with: + java-version: 17 + + - name: Build with Gradle + run: ./gradlew jpackageZip + + + - run: echo "OR_TARGET_NAME=linux-x64" >> $GITHUB_ENV + if: matrix.os == 'ubuntu-latest' + + - run: echo "OR_TARGET_NAME=macos" >> $GITHUB_ENV + if: matrix.os == 'macos-latest' + + - run: echo "OR_TARGET_NAME=windows" >> $GITHUB_ENV + if: matrix.os == 'windows-latest' + + - name: Rename jpackage zip + run: mv ./build/distributions/openrndr-application.zip ./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip + + - name: Create Release + uses: ncipollo/release-action@v1.12.0 + id: create_release + with: + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + replacesArtifacts: false + body: Fully automated release + artifacts: "./build/distributions/openrndr-application-${{env.OR_TARGET_NAME}}.zip" + |
