Skip to content

Commit c4034c2

Browse files
authored
Add GitHub Actions for automatic release (#1)
will come into effect with updated published pipeline with tagged versions in a future update
1 parent 04d0ba0 commit c4034c2

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed

.github/release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- dependabot

.github/workflows/publish-release.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# .github/workflows/publish-release.yml
2+
name: Publish release
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
check-permission:
10+
name: check permission
11+
runs-on: ubuntu-latest
12+
outputs:
13+
permission: ${{ steps.check.outputs.permission }}
14+
steps:
15+
- id: check
16+
uses: shogo82148/actions-check-permissions@v1
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
20+
publish:
21+
name: Publish release
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: write
25+
pull-requests: read
26+
needs:
27+
- check-permission
28+
steps:
29+
##########################
30+
# Checkout the code base #
31+
##########################
32+
- name: Checkout code
33+
uses: actions/checkout@v4
34+
##########################
35+
# Release from tags #
36+
##########################
37+
- name: Publish Release
38+
id: publish_release
39+
uses: ghalactic/github-release-from-tag@v5
40+
if: github.ref_type == 'tag'
41+
with:
42+
prerelease: "false"
43+
reactions: rocket
44+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)