Skip to content

Commit fcc3379

Browse files
authored
Update build-python-packages.yml
1 parent 7069021 commit fcc3379

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

.github/workflows/build-python-packages.yml

+11-7
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,18 @@ jobs:
238238

239239
- name: Publish Release ${{ env.VERSION }}
240240
id: create_release
241-
uses: actions/create-release@v1
242241
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
249253
250254
- name: Generate hash for packages
251255
run: |

0 commit comments

Comments
 (0)