Skip to content

Commit

Permalink
Append release name to create release artifacts.
Browse files Browse the repository at this point in the history
This change adds the release name identifier specified when triggering the draft release workflow.
  • Loading branch information
erikbosch committed Sep 9, 2024
1 parent f6a2809 commit 66ed70a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/create_draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,20 @@ jobs:
pattern: databroker*
merge-multiple: true
- name: Display structure of downloaded files
run: ls -R build-artifacts
run: |
ls -R build-artifacts
cd build-artifacts
# Rename, add release name (usually tag)
for f in databroker*.tar.gz; do mv "$f" "$(echo "$f" | sed s/.tar.gz/-${{ needs.get_version.outputs.version }}.tar.gz/)"; done
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
# if: startsWith(github.ref, 'refs/tags/'
with:
draft: true
tag_name: ${{ needs.get_version.outputs.version }}
tag_name: KUKSA Databroker ${{ needs.get_version.outputs.version }}
fail_on_unmatched_files: true
files: |
build-artifacts/*
Expand Down

0 comments on commit 66ed70a

Please sign in to comment.