Skip to content

Commit 6d52709

Browse files
committed
Welcome to LLM Council
1 parent a5f943d commit 6d52709

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release with Shell Script and Description
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*' # Triggers on tags like v1.0.0
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
name: Create GitHub Release
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set current tag
21+
run: echo "CURRENT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
22+
23+
- name: Generate Release Notes
24+
env:
25+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
run: |
27+
RELEASE_BODY="LLM Council $CURRENT_TAG\n\nRepo: https://github.com/${{ github.repository }}\n"
28+
echo "RELEASENOTES<<EOF" >> $GITHUB_ENV
29+
echo -e "$RELEASE_BODY" >> $GITHUB_ENV
30+
echo "EOF" >> $GITHUB_ENV
31+
32+
- name: Create GitHub Release with file council.sh
33+
uses: softprops/action-gh-release@v2
34+
with:
35+
tag_name: ${{ env.CURRENT_TAG }}
36+
name: "LLM Council ${{ env.CURRENT_TAG }}"
37+
body: ${{ env.RELEASENOTES }}
38+
files: council.sh
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)