Skip to content

Commit 34b51b2

Browse files
localheinzsebastianbergmanntheseersebastianheuerSchrank
committed
Enhancement: Create release when tag is pushed
Co-authored-by: Sebastian Bergmann <[email protected]> Co-authored-by: Arne Blankerts <[email protected]> Co-authored-by: Andreas Möller <[email protected]> Co-authored-by: Sebastian Heuer <[email protected]> Co-authored-by: Fabian Blechschmidt <[email protected]> Co-authored-by: Frank Sons <[email protected]>
1 parent aac7726 commit 34b51b2

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# https://docs.github.com/en/actions
2+
3+
on:
4+
push:
5+
tags:
6+
- "**"
7+
8+
name: Release
9+
10+
jobs:
11+
release:
12+
name: Release
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install PHP with extensions
21+
uses: shivammathur/setup-php@v2
22+
with:
23+
php-version: 8.3
24+
coverage: none
25+
extensions: none
26+
tools: none
27+
28+
- name: Determine tag
29+
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
30+
31+
- name: Parse changelog
32+
run: build/scripts/extract-release-notes.php ${{ env.RELEASE_TAG }} > release-notes.md
33+
34+
- name: Create release
35+
uses: ncipollo/release-action@v1
36+
with:
37+
bodyFile: release-notes.md
38+
tag: ${{ env.RELEASE_TAG }}
39+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)