Skip to content

Commit

Permalink
GitHub action for creating release (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
samos123 authored Apr 2, 2024
1 parent 66cc783 commit 7a47423
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/create-gh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Create a GitHub release on tag push
# source: https://stackoverflow.com/a/75679739/376445
name: Create GitHub Release

on:
push:
tags:
- "v*.*.*"

permissions:
contents: write

jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
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#*/} ${tag#v}" \
--generate-notes

0 comments on commit 7a47423

Please sign in to comment.