Skip to content

Commit faeb742

Browse files
authored
GHA: Trigger release workflow when tags are pushed (#15)
The GHA workflow looks for semantic versioning tags in the format of `major.minor.patch`. Each part is a digit.
1 parent b63f9a1 commit faeb742

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Create Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
8+
permissions:
9+
contents: write
10+
# discussions: write
11+
12+
jobs:
13+
create_release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Generate GitHub Release
17+
uses: softprops/action-gh-release@v2
18+
with:
19+
generate_release_notes: true
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

changelog.d/+gha-release.infra.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
GHA: Trigger release workflow when tags are pushed

0 commit comments

Comments
 (0)