-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Raoul Linnenbank <[email protected]>
- Loading branch information
1 parent
af9c169
commit 81bf454
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,14 +82,14 @@ jobs: | |
poetry config http-basic.nexus ${{ secrets.EKS_NEXUS_USER }} ${{ secrets.EKS_NEXUS_PASSWORD }} | ||
# Determine the current version of the application (for main branch) | ||
- name: Determine current version | ||
if: ${{ github.ref_name == 'main-v2' }} | ||
if: ${{ github.ref_name == 'main-2.0' }} | ||
run: | | ||
version="$(poetry version --short)${{ github.run_number }}" | ||
echo "Package version: $version" | ||
echo "package_version=$version" >> $GITHUB_ENV | ||
# Determine the current version of the application (for non-main branch) | ||
- name: Determine a version non-main branch | ||
if: ${{ github.ref_name != 'main-v2' }} | ||
if: ${{ github.ref_name != 'main-2.0' }} | ||
run: | | ||
version="$(poetry version --short)rc${{ github.run_number }}" # rc | ||
echo "Package version: $version" | ||
|
@@ -103,6 +103,7 @@ jobs: | |
poetry publish --build | ||
# Create a Release on GitHub for the new package | ||
- name: Create a Release for the new package | ||
if: ${{ github.ref_name == 'main-2.0' }} | ||
uses: softprops/[email protected] | ||
with: | ||
tag_name: ${{ env.package_version }} | ||
|