-
Notifications
You must be signed in to change notification settings - Fork 0
73 lines (68 loc) · 2.4 KB
/
Copy pathrelease-build.yml
File metadata and controls
73 lines (68 loc) · 2.4 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
on:
push:
tags:
- "v*.*.*"
name: release-build
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
discussions: write
# permissions: write-all # this is the FIX
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ^1.24.5
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout tag
run: |
git fetch --depth=1 origin +refs/tags/*:refs/tags/*
tag_name="${GITHUB_REF##*/}"
echo Tag $tag_name
git checkout $tag_name
echo "TAG_NAME=${tag_name}" >> $GITHUB_ENV
- name: Build
run: |
make V=1 release -j$(nproc)
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
generate_release_notes: true
discussion_category_name: Announcements
# # repo_token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
# # tag: ${{ github.ref }}
# tag_name: ${{ github.ref_name }}
# name: ${{ env.TAG_NAME }}
# # overwrite: true
# overwrite_files: true
# # file_glob: true
append_body: true
draft: false
prerelease: false
preserve_order: true
# body_path: relnotes.md
body: |
Store is a high-performance key-value store and hierarchical configuration set manager, which loads and merge app settings from any external sources, and provides a unify interface to access them. Try `appSettings.MustBool("sys.logging.enabled", false)` to ensure whether we should enable logging plugin in coding.
${{ github.event.head_commit.message }}
files: |
./*.zip
#
# This release was created by: ${{ github.event.sender.login }}
# Release of Store, a high-performance k-v store and hierarchical
# configuration set manager,
# built from commit ${{ env.SHORT_SHA }}, is now available.
#
# # body: |
# # ${{ steps.read_release.outputs.RELEASE_BODY }}
# body: |
# ${{ steps.read_release_notes_0.outputs.RELEASE_BODY }}
# body_path: ${{ github.workspace }}-CHANGELOG.txt
# body_path: RELNOTES.md
# files: |
# LICENSE
# RELNOTES.md