forked from clojure-emacs/clojure-ts-mode
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (22 loc) · 824 Bytes
/
github_release.yml
File metadata and controls
27 lines (22 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Create GitHub Release
on:
push:
tags:
- "v*" # Trigger when a version tag is pushed (e.g., v1.0.0)
jobs:
create-release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Create GitHub Release with Auto-Generated Notes
uses: ncipollo/release-action@v1
with:
tag: ${{ github.ref_name }}
name: clojure-ts-mode ${{ github.ref_name }}
prerelease: ${{ contains(github.ref, '-rc') || contains(github.ref, '-alpha') || contains(github.ref, '-beta') }}
generateReleaseNotes: true # Auto-generate release notes based on PRs and commits
# TODO: Use bodyFile to get the contents from changelog
token: ${{ secrets.GITHUB_TOKEN }}