Skip to content

Commit

Permalink
Release by tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lolepezy committed Jan 9, 2025
1 parent fcea271 commit 96c7c67
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Release Upload
name: Release

on:
release:
types: [ "published" ]
push:
tags: 'rpki-ta-0-*'

jobs:
publish:
build:
if: github.repository == 'RIPE-NCC/rpki-ta-0'
runs-on: ubuntu-latest
name: Upload artefact to the latest release

steps:
- uses: actions/checkout@v3

Expand All @@ -19,18 +19,18 @@ jobs:

- name: Setup Gradle
uses: gradle/[email protected]

- 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-11.tgz

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
run: mv $(find build/distributions -name rpki-ta-0\*.tgz) rpki-ta-0-${{github.ref_name}}-java-11.tgz

- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: rpki-ta-0-java-11.tgz
asset_name: rpki-ta-0-java-11.tgz
tag: ${{ github.ref }}

files: rpki-ta-0-java-11.tgz
draft: true
body: It needs to be filled in manually

0 comments on commit 96c7c67

Please sign in to comment.