Skip to content

Commit

Permalink
Automatically create GitHub release for each tag
Browse files Browse the repository at this point in the history
  • Loading branch information
schnatterer committed May 27, 2024
1 parent a3f0ab5 commit 763cd6c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Create release

on:
push:
tags: # This will now trigger on all tags
- '*'

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="${tag}" \
--generate-notes

0 comments on commit 763cd6c

Please sign in to comment.