mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-15 16:12:35 +00:00
Add GitHub automatic release (#173)
This automatically creates a GitHub release when a matching tag is created in this repository.
This commit is contained in:
parent
c584f13cd4
commit
3672145e4b
2 changed files with 46 additions and 0 deletions
26
.github/release.yml
vendored
Normal file
26
.github/release.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
changelog:
|
||||
categories:
|
||||
- title: NOTES
|
||||
labels:
|
||||
- note
|
||||
- documentation
|
||||
- title: FEATURES
|
||||
labels:
|
||||
- feature
|
||||
- title: ENHANCEMENTS
|
||||
labels:
|
||||
- enhancement
|
||||
- documentation
|
||||
- title: BUG FIXES
|
||||
labels:
|
||||
- bug
|
||||
- title: INTERNAL
|
||||
labels:
|
||||
- dependencies
|
||||
- "*"
|
||||
exclude:
|
||||
labels:
|
||||
- duplicate
|
||||
- wontfix
|
||||
- question
|
||||
- invalid
|
||||
20
.github/workflows/release.yml
vendored
Normal file
20
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
name: Publish GitHub Release
|
||||
|
||||
permissions:
|
||||
contents: write # for creating a release and uploading release artifacts
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+*'
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: "ubuntu-latest"
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: GH Release
|
||||
run: |
|
||||
gh release create "${GITHUB_REF#refs/tags/}" --generate-notes
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue