Skip to content

Commit cec1d32

Browse files
committed
Automate the creation of GitHub releases
1 parent 6efda6a commit cec1d32

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/github_release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Create GitHub Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*" # Trigger when a version tag is pushed (e.g., v1.0.0)
7+
8+
jobs:
9+
create-release:
10+
runs-on: ubuntu-latest
11+
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
19+
- name: Create GitHub Release with Auto-Generated Notes
20+
uses: ncipollo/release-action@v1
21+
with:
22+
tag: ${{ github.ref_name }}
23+
name: clojure-ts-mode ${{ github.ref_name }}
24+
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
25+
generateReleaseNotes: true # Auto-generate release notes based on PRs and commits
26+
# TODO: Use bodyFile to get the contents from changelog
27+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)