Commit e52c683 1 parent 0a8e036 commit e52c683 Copy full SHA for e52c683
File tree 2 files changed +12
-18
lines changed
2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change @@ -53,25 +53,21 @@ jobs:
53
53
major|minor|patch)
54
54
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
55
55
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
58
58
echo "PACKAGE=true" >> $GITHUB_ENV
59
59
;;
60
60
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"
66
62
;;
67
63
esac
68
64
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 }}
74
70
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
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ RELEASE_KIND=$(generate-changelog --output release-hint)
5
5
echo " ::notice::Suggested release type is: ${RELEASE_KIND} "
6
6
PR_NUMBER=$( gh pr view --json number -q .number || echo " " )
7
7
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
11
9
bump-my-version bump -v $RELEASE_KIND
12
10
python -m build
13
11
python -m twine upload dist/*
You can’t perform that action at this time.
0 commit comments