Skip to content

Commit

Permalink
ci: drop failed dependency on gh for creating a github release afte…
Browse files Browse the repository at this point in the history
…r a new tag
  • Loading branch information
alexogeny committed Aug 20, 2024
1 parent 989ee18 commit b9650d7
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,6 @@ jobs:
RYE_VERSION: "0.37.0"
RYE_INSTALL_OPTION: "--yes"

- name: Install GitHub CLI
run: |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt update
sudo apt install gh
- name: Generate Release Notes
run: |
sudo apt-get install python3-pip
Expand All @@ -36,7 +29,18 @@ jobs:
- name: Create GitHub Release
run: |
VERSION=${GITHUB_REF#refs/tags/}
gh release create $VERSION --notes-file RELEASE_NOTES.md
curl -X POST \
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{
"tag_name": "'"$VERSION"'",
"target_commitish": "'"$GITHUB_SHA"'",
"name": "'"$VERSION"'",
"body": "'"$(cat RELEASE_NOTES.md)"'",
"draft": false,
"prerelease": false
}' \
https://api.github.com/repos/${{ github.repository }}/releases
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down

0 comments on commit b9650d7

Please sign in to comment.