-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.06 KB
/
Copy pathrelease.yml
File metadata and controls
49 lines (41 loc) · 1.06 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Build binaries
run: |
chmod +x build.sh
./build.sh ${GITHUB_REF#refs/tags/}
- name: Prepare release assets
run: |
cp kamadhenu.1 dist/
cp install.sh dist/
chmod +x dist/install.sh
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: dist/*
draft: false
prerelease: false
generate_release_notes: true
body: |
## Quick Install
```bash
curl -fsSL https://raw.githubusercontent.com/krry/Kamadhenu/main/install.sh | bash
```
Or download the binary for your platform below.
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}