Skip to content

Commit

Permalink
Change release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbosch committed Nov 26, 2024
1 parent 30e5c13 commit ef93e5a
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/create_draft_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@
name: Create Draft Release

on:
workflow_dispatch: # input version manually. Overrides push tag
inputs:
tag:
description: "Release version, eg:latest, 0.2.1"
required: true
default: "0.0.0"
workflow_dispatch: # select tag when creating
push:
tags:
- "*.*.*"

# As of today trigger only manually
#push:
# tags:
# - "*.*.*"

# Needed if GITHUB_TOKEN by default do not have right to create release
permissions:
Expand Down Expand Up @@ -87,16 +81,15 @@ jobs:
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
for f in databroker*.tar.gz; do mv "$f" "$(echo "$f" | sed s/.tar.gz/-${{ github.ref_name }}.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: KUKSA Databroker ${{ needs.get_version.outputs.version }}
name: KUKSA Databroker ${{ github.ref_name }}
fail_on_unmatched_files: true
files: |
build-artifacts/*
Expand Down

0 comments on commit ef93e5a

Please sign in to comment.