From 124d04cf9d48c68fe0072df2fe572e88f3e807d2 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Tue, 5 Nov 2024 17:28:58 +0100 Subject: [PATCH 01/12] Add artefact upload --- .github/workflows/ci.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b8c3a3..b1ea229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,6 +30,15 @@ jobs: - name: Execute Gradle build run: ./gradlew build + - name: Rename the package + run: mv $(find build/distributions -name rpki-ta-0\*.zip) artifacts/rpki-ta-0.zip + + - name: Upload zip + uses: actions/upload-artifact@v4 + with: + name: artifacts + path: artifacts + docker: runs-on: ubuntu-latest needs: build From d1fdcf2a2c3de4dda8bdf2515a11cad06c47c1c6 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Tue, 5 Nov 2024 18:14:30 +0100 Subject: [PATCH 02/12] Fix directory --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b1ea229..f5cd108 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: run: ./gradlew build - name: Rename the package - run: mv $(find build/distributions -name rpki-ta-0\*.zip) artifacts/rpki-ta-0.zip + run: mkdir artifacts && mv $(find build/distributions -name rpki-ta-0\*.zip) artifacts/rpki-ta-0.zip - name: Upload zip uses: actions/upload-artifact@v4 From b927497793069fcdeeb41e4ced0454b1efa4d6f4 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 09:21:28 +0100 Subject: [PATCH 03/12] Fix existing artifact --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5cd108..0b4ca0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: run: ./gradlew build - name: Rename the package - run: mkdir artifacts && mv $(find build/distributions -name rpki-ta-0\*.zip) artifacts/rpki-ta-0.zip + run: mkdir -p artifacts && mv $(find build/distributions -name rpki-ta-0\*.zip) artifacts/rpki-ta-0-${{ matrix.java }}.zip - name: Upload zip uses: actions/upload-artifact@v4 From 7767544bcf9f15681b175b9a5b019406afb4dc4e Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 09:33:13 +0100 Subject: [PATCH 04/12] Fix upload 2 --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0b4ca0c..0a4a8c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,13 +31,13 @@ jobs: run: ./gradlew build - name: Rename the package - run: mkdir -p artifacts && mv $(find build/distributions -name rpki-ta-0\*.zip) artifacts/rpki-ta-0-${{ matrix.java }}.zip + run: mv $(find build/distributions -name rpki-ta-0\*.zip) rpki-ta-0-${{ matrix.java }}.zip - name: Upload zip uses: actions/upload-artifact@v4 with: - name: artifacts - path: artifacts + name: rpki-ta-0-${{ matrix.java }}.zip + path: dist docker: runs-on: ubuntu-latest From cc1cb1539a79fd129a6d926f42c4e05ba0834da8 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 09:48:45 +0100 Subject: [PATCH 05/12] Fix path --- .github/workflows/ci.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a4a8c9..3cfca6a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,6 @@ jobs: uses: actions/upload-artifact@v4 with: name: rpki-ta-0-${{ matrix.java }}.zip - path: dist docker: runs-on: ubuntu-latest From 45315f7f7a2bcc5a24949a1249208959cb384269 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 10:10:04 +0100 Subject: [PATCH 06/12] Fix path 2 --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3cfca6a..226e70e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,6 +37,7 @@ jobs: uses: actions/upload-artifact@v4 with: name: rpki-ta-0-${{ matrix.java }}.zip + path: . docker: runs-on: ubuntu-latest From 89bde80cf3daecfa15fb0d50e7068f8994d80167 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 10:12:27 +0100 Subject: [PATCH 07/12] Change artefact name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 226e70e..207ad90 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: run: ./gradlew build - name: Rename the package - run: mv $(find build/distributions -name rpki-ta-0\*.zip) rpki-ta-0-${{ matrix.java }}.zip + run: mv $(find build/distributions -name rpki-ta-0\*.zip) rpki-ta-0-java-${{ matrix.java }}.zip - name: Upload zip uses: actions/upload-artifact@v4 From ca087341beacea54aaf02aa0f27022357bbfd237 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 10:13:03 +0100 Subject: [PATCH 08/12] Change to tgz --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 207ad90..cf686e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,12 +31,12 @@ jobs: run: ./gradlew build - name: Rename the package - run: mv $(find build/distributions -name rpki-ta-0\*.zip) rpki-ta-0-java-${{ matrix.java }}.zip + run: mv $(find build/distributions -name rpki-ta-0\*.tgz) rpki-ta-0-java-${{ matrix.java }}.tgz - - name: Upload zip + - name: Upload TAR uses: actions/upload-artifact@v4 with: - name: rpki-ta-0-${{ matrix.java }}.zip + name: rpki-ta-0-${{ matrix.java }}.tgz path: . docker: From cf0b8c623f6b0a3eb118c5f81d488e96f43af8d0 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 10:14:03 +0100 Subject: [PATCH 09/12] Fix archive name --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf686e8..14cc4ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Upload TAR uses: actions/upload-artifact@v4 with: - name: rpki-ta-0-${{ matrix.java }}.tgz + name: rpki-ta-0-java-${{ matrix.java }}.tgz path: . docker: From 4c5fa21a7e819bbcf7a8558685b23cafef1cbb7c Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Wed, 6 Nov 2024 13:10:12 +0100 Subject: [PATCH 10/12] Add release.yml --- .github/workflows/release.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..9159620 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: Release Upload +on: + release: + types: [ "published" ] + +jobs: + publish: + runs-on: ubuntu-latest + needs: build + if: ${{ github.ref == 'refs/heads/main' }} + + steps: + - uses: actions/checkout@v3 + + - name: Setup java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 11 + + - name: Setup Gradle + uses: gradle/gradle-build-action@v2.12.0 + + - name: Rename the package + run: mv $(find build/distributions -name rpki-ta-0\*.tgz) rpki-ta-0-java-11.tgz + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: rpki-ta-0-java-11.tgz + asset_name: rpki-ta-0-java-11.tgz + tag: ${{ github.ref }} + From 23c8cbd8c3286fef630a10c2b84787df6ab31a15 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Thu, 7 Nov 2024 11:15:28 +0100 Subject: [PATCH 11/12] Fix dependency --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9159620..e89e199 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,8 @@ on: jobs: publish: runs-on: ubuntu-latest - needs: build + name: Upload artefact to the latest release + if: ${{ github.ref == 'refs/heads/main' }} steps: From 5c6560f44d35a96e20eab0517e2b8981579fdb57 Mon Sep 17 00:00:00 2001 From: Mikhail Puzanov Date: Thu, 7 Nov 2024 11:30:06 +0100 Subject: [PATCH 12/12] Adjust readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 5d393bc..169dad7 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ https://github.com/RIPE-NCC/rpki-ta-0/blob/main/LICENSE.txt. Changelog --------- +### v0.5.1 + * Publish releases on GitHub + ### v0.5.0 * rpki-commons 1.39.1 * Updated gradle plugins (to fix build warnings)