Commit 6ac064e 1 parent d2f30a8 commit 6ac064e Copy full SHA for 6ac064e
File tree 3 files changed +16
-5
lines changed
actions/package-and-upload-artifacts
3 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Package and upload artifacts
2
2
description : Package a Python project and upload the artifacts and release notes
3
+ inputs :
4
+ tag-name :
5
+ description : ' The name of the tag for the GitHub release'
6
+ required : true
3
7
runs :
4
8
using : ' composite'
5
9
steps :
22
26
}
23
27
24
28
changelog=$(cat "CHANGELOG.md")
25
- target_version=${GITHUB_REF#refs/tags/ }
29
+ target_version=${{ inputs.tag-name } }
26
30
echo "TAG_NAME=$target_version" >> $GITHUB_ENV
27
31
content=$(extract_version_content "$changelog" "$target_version")
28
32
Original file line number Diff line number Diff line change 5
5
branches : [master]
6
6
7
7
jobs :
8
- bumpversion :
8
+ preview-version-hint :
9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
- uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -42,18 +42,25 @@ jobs:
42
42
case "$RELEASE_KIND" in
43
43
major|minor|patch)
44
44
bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
45
- git push
46
- git push --tags
45
+ echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
46
+ # git push
47
+ # git push --tags
47
48
echo "PACKAGE=true" >> $GITHUB_ENV
48
49
;;
49
50
dev)
50
- echo "Intentionally not bumping version for dev release"
51
+ echo "Temporary dev release for testing"
52
+ bump-my-version bump --allow-dirty --verbose "$RELEASE_KIND"
53
+ echo "TAG_NAME=$(bump-my-version show current_version)" >> $GITHUB_ENV
54
+ echo "PACKAGE=true" >> $GITHUB_ENV
55
+ # echo "Intentionally not bumping version for dev release"
51
56
;;
52
57
esac
53
58
54
59
- name : Package and upload artifacts
55
60
if : ${{ env.PACKAGE == 'true' }}
56
61
uses : ./.github/actions/package-and-upload-artifacts
62
+ with :
63
+ tag-name : ${{ env.TAG_NAME }}
57
64
58
65
- name : Create a GitHub release
59
66
if : ${{ env.PACKAGE == 'true' }}
You can’t perform that action at this time.
0 commit comments