diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b8c3a3..14cc4ab 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\*.tgz) rpki-ta-0-java-${{ matrix.java }}.tgz + + - name: Upload TAR + uses: actions/upload-artifact@v4 + with: + name: rpki-ta-0-java-${{ matrix.java }}.tgz + path: . + docker: runs-on: ubuntu-latest needs: build diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e89e199 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release Upload +on: + release: + types: [ "published" ] + +jobs: + publish: + runs-on: ubuntu-latest + name: Upload artefact to the latest release + + 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 }} + 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)