Skip to content

Commit

Permalink
Fixed commented out workflow tasks !minor
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Dec 18, 2023
1 parent 0a8e036 commit e52c683
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 18 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,25 +53,21 @@ jobs:
major|minor|patch)
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
# git push
# git push --tags
git push
git push --tags
echo "PACKAGE=true" >> $GITHUB_ENV
;;
dev)
echo "Temporary dev release for testing"
bump-my-version bump --allow-dirty --verbose --no-commit "$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"
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: 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' }}
# uses: ./.github/actions/release
- name: Create a GitHub release
if: ${{ env.PACKAGE == 'true' }}
uses: ./.github/actions/release
4 changes: 1 addition & 3 deletions tools/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ RELEASE_KIND=$(generate-changelog --output release-hint)
echo "::notice::Suggested release type is: ${RELEASE_KIND}"
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
echo "::notice::PR number is: ${PR_NUMBER}"
REVISION=$(git describe --tags --long | awk -F- '{print $2}')
echo "::notice::Revision is: ${REVISION}"
export PR_NUMBER REVISION
export PR_NUMBER
bump-my-version bump -v $RELEASE_KIND
python -m build
python -m twine upload dist/*

0 comments on commit e52c683

Please sign in to comment.