Skip to content

Commit

Permalink
fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Oct 21, 2023
1 parent 86695d6 commit f66b220
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ jobs:
pip freeze > requirements.txt
- name: Publish Latest Draft
run: |
# Get the latest draft release
RELEASE_DATA=$(gh api repos/:owner/:repo/releases | jq '[.[] | select(.draft == true)][0]')
RELEASE_ID=$(echo $RELEASE_DATA | jq '.id')
# Publish the release
gh api -X PATCH repos/:owner/:repo/releases/$RELEASE_ID --field draft=false
gh release upload $RELEASE_ID requirements.txt --clobber
gh release edit ${{ github.ref_name }} --draft=false
gh release upload ${{ github.ref_name }} requirements.txt --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit f66b220

Please sign in to comment.