Skip to content

Commit

Permalink
Automatically create releases on new tags
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdfly committed Apr 27, 2024
1 parent 4fc5c77 commit a798e0a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Create release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-latest
steps:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} release ${tag#v}" \
--generate-notes
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,4 @@ Or a prerelease with:

`scripts/bump_version.sh prerel`

Then:
* Go to the Releases page https://github.com/superfly/fly-go/releases
* Click "Draft a New Release"
* Go to "Choose a tag", type the new tag (from the `script/bump_version.sh` output above)
* Click "Generate Release Notes"
* Click "Publish release" at the bottom
The release and notes will be created automatically via Github Actions.

0 comments on commit a798e0a

Please sign in to comment.