Skip to content

Commit

Permalink
Delete the prerelease before creating the new one
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Mar 2, 2023
1 parent a0fb0ca commit bd7c4eb
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,26 +270,37 @@ jobs:
name: wheels
path: dist

# First delete the old prerelease. If we don't do this, we don't get things like
# proper source-archives and changelog info.
# https://github.com/dev-drprasad/delete-tag-and-release
- uses: dev-drprasad/[email protected]
with:
tag_name: prerelease
delete_release: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Re-tag the prerelease with the commit from this build
# https://github.com/richardsimko/update-tag
- name: Update prerelease tag
uses: richardsimko/update-tag@v1
with:
tag_name: prerelease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create the actual prerelease
# https://github.com/softprops/action-gh-release
- name: GitHub Release
uses: ncipollo/release-action@v1.12.0
uses: softprops/action[email protected]
with:
name: "Development Build"
body: ${{ env.PRE_RELEASE_INSTRUCTIONS }}
prerelease: true
artifacts: dist/*
name: "Development Build"
tag: "prerelease"
tag_name: prerelease
files: dist/*
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
allowUpdates: true
removeArtifacts: true
replacesArtifacts: true
generate_release_notes: true

# ---------------------------------------------------------------------------

Expand Down

0 comments on commit bd7c4eb

Please sign in to comment.