Skip to content

Commit

Permalink
Merge pull request #7 from RIPE-NCC/add-artefact-upload
Browse files Browse the repository at this point in the history
Add artefact upload
  • Loading branch information
lolepezy authored Nov 27, 2024
2 parents 0efe83b + 5c6560f commit 83dbb1a
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 0 deletions.
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/[email protected]

- 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

0 comments on commit 83dbb1a

Please sign in to comment.