@@ -93,24 +93,29 @@ jobs:
93
93
# Preliminary checks done - commence the release process
94
94
#
95
95
96
- # This step creates the "Package x.y.z" commit that will be the base of
97
- # our tag and creates the release tag. This is run inside the container in
98
- # order to create signed git artifacts
99
- - name : " Create package commit and release tag"
100
- uses : mongodb-labs/drivers-github-tools/git-sign@v2
96
+ - name : " Create package commit"
97
+ uses : mongodb-labs/drivers-github-tools/bump-version@v2
101
98
with :
102
- command : " $(pwd)/.github/workflows/commit-and-tag.sh ${{ inputs.version }} ${{ env.GPG_KEY_ID }}"
103
-
104
- # This step needs to happen outside of the container, as PHP is not
105
- # available within.
106
- - name : " Bump to next development release"
107
- run : ./bin/update-release-version.php to-next-patch-dev
99
+ version : ${{ inputs.version }}
100
+ # Use get-version as a dummy as a version_bump_script is required
101
+ # We run the bump script manually earlier so we can sanity-check the version number and print nice output
102
+ version_bump_script : " ./bin/update-release-version.php get-version"
103
+ commit_template : ' Package ${VERSION}'
104
+ # Don't push changes as we're creating a second commit later
105
+ push_commit : false
106
+
107
+ - name : " Create release tag"
108
+ uses : mongodb-labs/drivers-github-tools/tag-version@v2
109
+ with :
110
+ version : ${{ inputs.version }}
111
+ tag_message_template : ' Release ${VERSION}'
108
112
109
- # Create a signed "back to -dev" commit, again inside the container
110
- - name : " Create dev commit"
111
- uses : mongodb-labs/drivers-github-tools/git-sign@v2
113
+ - name : " Bump to next development release and commit"
114
+ uses : mongodb-labs/drivers-github-tools/bump-version@v2
112
115
with :
113
- command : " git commit -m 'Back to -dev' -s --gpg-sign=${{ env.GPG_KEY_ID }} phongo_version.h"
116
+ version : ${{ inputs.version }}
117
+ version_bump_script : " ./bin/update-release-version.php to-next-patch-dev"
118
+ commit_template : ' Back to -dev'
114
119
115
120
# TODO: Manually merge using ours strategy. This avoids merge-up pull requests being created
116
121
# Process is:
@@ -119,9 +124,6 @@ jobs:
119
124
# 3. push next branch
120
125
# 4. switch back to release branch, then push
121
126
122
- - name : " Push changes from release branch"
123
- run : git push
124
-
125
127
- name : " Prepare release message"
126
128
run : |
127
129
cat > release-message <<'EOL'
@@ -131,9 +133,6 @@ jobs:
131
133
- name : " Create draft release"
132
134
run : echo "RELEASE_URL=$(gh release create ${{ inputs.version }} --target ${{ github.ref_name }} --title "${{ inputs.version }}" --notes-file release-message --draft)" >> "$GITHUB_ENV"
133
135
134
- - name : " Push release tag"
135
- run : git push origin ${{ inputs.version }}
136
-
137
136
- name : " Set summary"
138
137
run : |
139
138
echo '🚀 Created tag and drafted release for version [${{ inputs.version }}](${{ env.RELEASE_URL }})' >> $GITHUB_STEP_SUMMARY
0 commit comments