Skip to content

Commit 55c259d

Browse files
authored
feat: add release workflow for automated versioning and tagging (#12)
1 parent c22fe4a commit 55c259d

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- Makefile
9+
workflow_dispatch:
10+
11+
jobs:
12+
create-release:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Check out ${{ github.repository }}
17+
uses: actions/checkout@v4
18+
19+
- name: Check out Devolutions/actions
20+
uses: actions/checkout@v4
21+
with:
22+
repository: Devolutions/actions
23+
ref: v1
24+
token: ${{ secrets.DEVOLUTIONSBOT_TOKEN }}
25+
path: ./.github/workflows
26+
27+
- name: Set version
28+
id: get-version
29+
run: echo "version=$(grep -E '^VERSION[[:space:]]*\?=' Makefile | awk -F'= ' '{print $2}' | tr -d ' ')" >> $GITHUB_OUTPUT
30+
31+
- name: Create release
32+
uses: ./.github/workflows/create-release
33+
with:
34+
github_token: ${{ secrets.GITHUB_TOKEN }}
35+
tag: v${{ steps.get-version.outputs.version }}

0 commit comments

Comments
 (0)