mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 16:42:35 +00:00
This automatically creates a GitHub release when a matching tag is created in this repository.
20 lines
441 B
YAML
20 lines
441 B
YAML
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}}
|