Skip to content

Commit

Permalink
Put in temporary debugging steps
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 17, 2023
1 parent d2f30a8 commit 6ac064e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .github/actions/package-and-upload-artifacts/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Package and upload artifacts
description: Package a Python project and upload the artifacts and release notes
inputs:
tag-name:
description: 'The name of the tag for the GitHub release'
required: true
runs:
using: 'composite'
steps:
Expand All @@ -22,7 +26,7 @@ runs:
}
changelog=$(cat "CHANGELOG.md")
target_version=${GITHUB_REF#refs/tags/}
target_version=${{ inputs.tag-name }}
echo "TAG_NAME=$target_version" >> $GITHUB_ENV
content=$(extract_version_content "$changelog" "$target_version")
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [master]

jobs:
bumpversion:
preview-version-hint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,25 @@ jobs:
case "$RELEASE_KIND" in
major|minor|patch)
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
git push
git push --tags
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
# git push
# git push --tags
echo "PACKAGE=true" >> $GITHUB_ENV
;;
dev)
echo "Intentionally not bumping version for dev release"
echo "Temporary dev release for testing"
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
echo "PACKAGE=true" >> $GITHUB_ENV
# echo "Intentionally not bumping version for dev release"
;;
esac
- name: Package and upload artifacts
if: ${{ env.PACKAGE == 'true' }}
uses: ./.github/actions/package-and-upload-artifacts
with:
tag-name: ${{ env.TAG_NAME }}

- name: Create a GitHub release
if: ${{ env.PACKAGE == 'true' }}
Expand Down

0 comments on commit 6ac064e

Please sign in to comment.