Skip to content

Commit

Permalink
Add release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lolepezy committed Nov 6, 2024
1 parent cf0b8c6 commit 4c5fa21
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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/[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 }}

0 comments on commit 4c5fa21

Please sign in to comment.