File tree 1 file changed +11
-7
lines changed
1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -238,14 +238,18 @@ jobs:
238
238
239
239
- name : Publish Release ${{ env.VERSION }}
240
240
id : create_release
241
- uses : actions/create-release@v1
242
241
env :
243
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
244
- with :
245
- tag_name : ${{ env.VERSION }}-${{ github.run_id }}
246
- release_name : ${{ env.VERSION }}
247
- body : |
248
- Python ${{ env.VERSION }}
242
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
243
+ shell : bash
244
+ run : |
245
+ tag_name="${{ env.VERSION }}-${{ github.run_id }}"
246
+ gh release create "$tag_name" \
247
+ --repo="$GITHUB_REPOSITORY" \
248
+ --title="${{ env.VERSION }}" \
249
+ --notes="Python ${{ env.VERSION }}"
250
+
251
+ release_id=$(gh release view "$tag_name" --repo "$GITHUB_REPOSITORY" --json databaseId --jq '.databaseId')
252
+ echo "id=$release_id" >> $GITHUB_OUTPUT
249
253
250
254
- name : Generate hash for packages
251
255
run : |
You can’t perform that action at this time.
0 commit comments