From f391fed2554b2aabe8005a2d1d415771d89eec5e Mon Sep 17 00:00:00 2001 From: Edwin Jakobs Date: Sun, 17 May 2020 11:00:48 +0200 Subject: Add jpackageZip and Github actions for publishing binaries --- .github/workflows/build-on-commit.yaml | 2 +- .github/workflows/publish-binaries-linux-x64.yaml | 30 +++++++++++++++++++++++ .github/workflows/publish-binaries-macos.yaml | 30 +++++++++++++++++++++++ .github/workflows/publish-binaries-windows.yaml | 30 +++++++++++++++++++++++ 4 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-binaries-linux-x64.yaml create mode 100644 .github/workflows/publish-binaries-macos.yaml create mode 100644 .github/workflows/publish-binaries-windows.yaml (limited to '.github/workflows') diff --git a/.github/workflows/build-on-commit.yaml b/.github/workflows/build-on-commit.yaml index 48c0db7..658ce15 100644 --- a/.github/workflows/build-on-commit.yaml +++ b/.github/workflows/build-on-commit.yaml @@ -11,5 +11,5 @@ jobs: - uses: actions/setup-java@v1 with: java-version: 14 - - name: Build apidocs + - name: Build sources run: ./gradlew build \ No newline at end of file diff --git a/.github/workflows/publish-binaries-linux-x64.yaml b/.github/workflows/publish-binaries-linux-x64.yaml new file mode 100644 index 0000000..4eed920 --- /dev/null +++ b/.github/workflows/publish-binaries-linux-x64.yaml @@ -0,0 +1,30 @@ +name: Publish Linux/x64 binaries + +on: + push: + tags: + - v0.* + - v0.*.* + - v1.* + - v1.*.* + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + - name: Build with Gradle + run: ./gradlew jpackageZip + - name: Create Release + uses: ncipollo/release-action@v1.6.1 + id: create_release + with: + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + replaceArtifacts: false + body: Fully automated release + artifacts: "./build/distributions/openrndr-application-linux-x64.zip" \ No newline at end of file diff --git a/.github/workflows/publish-binaries-macos.yaml b/.github/workflows/publish-binaries-macos.yaml new file mode 100644 index 0000000..e631eed --- /dev/null +++ b/.github/workflows/publish-binaries-macos.yaml @@ -0,0 +1,30 @@ +name: Publish macOS binaries + +on: + push: + tags: + - v0.* + - v0.*.* + - v1.* + - v1.*.* + +jobs: + build: + runs-on: macos-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + - name: Build with Gradle + run: ./gradlew jpackageZip + - name: Create Release + uses: ncipollo/release-action@v1.6.1 + id: create_release + with: + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + replaceArtifacts: false + body: Fully automated release + artifacts: "./build/distributions/openrndr-application-macos.zip" \ No newline at end of file diff --git a/.github/workflows/publish-binaries-windows.yaml b/.github/workflows/publish-binaries-windows.yaml new file mode 100644 index 0000000..b6fb4a5 --- /dev/null +++ b/.github/workflows/publish-binaries-windows.yaml @@ -0,0 +1,30 @@ +name: Publish Windows binaries + +on: + push: + tags: + - v0.* + - v0.*.* + - v1.* + - v1.*.* + - +jobs: + build: + runs-on: windows-latest + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + - name: Build with Gradle + run: ./gradlew jpackageZip + - name: Create Release + uses: ncipollo/release-action@v1.6.1 + id: create_release + with: + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + replaceArtifacts: false + body: Fully automated release + artifacts: "./build/distributions/openrndr-application-windows.zip" \ No newline at end of file -- cgit v1.3.1