Skip to content

Commit e52c683

Browse files
committed
Fixed commented out workflow tasks !minor
1 parent 0a8e036 commit e52c683

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

.github/workflows/version.yaml

+11-15
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,21 @@ jobs:
5353
major|minor|patch)
5454
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
5555
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
56-
# git push
57-
# git push --tags
56+
git push
57+
git push --tags
5858
echo "PACKAGE=true" >> $GITHUB_ENV
5959
;;
6060
dev)
61-
echo "Temporary dev release for testing"
62-
bump-my-version bump --allow-dirty --verbose --no-commit "$RELEASE_KIND"
63-
echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
64-
echo "PACKAGE=true" >> $GITHUB_ENV
65-
# echo "Intentionally not bumping version for dev release"
61+
echo "Intentionally not bumping version for dev release"
6662
;;
6763
esac
6864
69-
# - name: Package and upload artifacts
70-
# if: ${{ env.PACKAGE == 'true' }}
71-
# uses: ./.github/actions/package-and-upload-artifacts
72-
# with:
73-
# tag-name: ${{ env.TAG_NAME }}
65+
- name: Package and upload artifacts
66+
if: ${{ env.PACKAGE == 'true' }}
67+
uses: ./.github/actions/package-and-upload-artifacts
68+
with:
69+
tag-name: ${{ env.TAG_NAME }}
7470

75-
# - name: Create a GitHub release
76-
# if: ${{ env.PACKAGE == 'true' }}
77-
# uses: ./.github/actions/release
71+
- name: Create a GitHub release
72+
if: ${{ env.PACKAGE == 'true' }}
73+
uses: ./.github/actions/release

tools/bump.sh

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ RELEASE_KIND=$(generate-changelog --output release-hint)
55
echo "::notice::Suggested release type is: ${RELEASE_KIND}"
66
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
77
echo "::notice::PR number is: ${PR_NUMBER}"
8-
REVISION=$(git describe --tags --long | awk -F- '{print $2}')
9-
echo "::notice::Revision is: ${REVISION}"
10-
export PR_NUMBER REVISION
8+
export PR_NUMBER
119
bump-my-version bump -v $RELEASE_KIND
1210
python -m build
1311
python -m twine upload dist/*

0 commit comments

Comments
 (0)