Skip to content

Commit

Permalink
Create GitHub release
Browse files Browse the repository at this point in the history
  • Loading branch information
pgoslatara committed Jun 30, 2024
1 parent 1035fd7 commit e39b1a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/release_pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,21 @@
load: false
push: true
tags: ${{ steps.meta.outputs.tags }}

- name: Determine if prerelease flag is necessary
run: |
[ "${{ inputs.version_bump_type }}" = "prerelease" ] && export PRERELEASE="--prerelease" || export PRERELEASE="--latest"
echo "PRERELEASE: $PRERELEASE"
echo PRERELEASE=$PRERELEASE >> "$GITHUB_ENV"
- name: Create release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release create ${{ steps.version.outputs.version }} \
--generate-notes \
--repo ${{ github.repository }} \
--target main \
--title '${{ steps.version.outputs.version }}' \
$PRELEASE \
--verify-tag

0 comments on commit e39b1a1

Please sign in to comment.