Skip to content

Commit

Permalink
Create release-tag.yml
Browse files Browse the repository at this point in the history
create a github release when a version tag is pushed
  • Loading branch information
epreston committed Jul 26, 2024
1 parent c0115e3 commit f09700f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# When a version tag is pushed, create a github release

name: Create Release

on:
workflow_dispatch:

push:
tags:
- 'v*.*.*'

permissions: {}

jobs:
release-tag:
name: Create Release
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Release
id: release_tag
uses: epreston/release-tag@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref_name }}
body: |
Please refer to the commit [history](${{ github.server_url }}/${{ github.repository }}/commits/main) for details.

0 comments on commit f09700f

Please sign in to comment.