Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add artefact upload #7

Merged
merged 12 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Loading