Commit 56e6189 1 parent 8a88f96 commit 56e6189 Copy full SHA for 56e6189
File tree 2 files changed +25
-2
lines changed
2 files changed +25
-2
lines changed Original file line number Diff line number Diff line change 14
14
name : Create a Public Release Version
15
15
runs-on : ubuntu-latest
16
16
steps :
17
+ - name : Checkout repository
18
+ uses : actions/checkout@v4.2.2
19
+
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v5.3.0
22
+ with :
23
+ go-version-file : ./go.mod
24
+
25
+ - name : Build the Go Binary
26
+ run : |
27
+ VERSION=${{ github.ref_name }}
28
+ GIT_VERSION=$(git describe --tags --always)
29
+ GIT_COMMIT=$(git rev-parse --short HEAD)
30
+ BUILD_DATE=$(date -u '+%Y-%m-%d')
31
+
32
+ go build -ldflags "\
33
+ -X github.com/Weburz/crisp/internal/version.version=$VERSION \
34
+ -X github.com/Weburz/crisp/internal/version.gitVersion=$GIT_VERSION \
35
+ -X github.com/Weburz/crisp/internal/version.gitCommit=$GIT_COMMIT \
36
+ -X github.com/Weburz/crisp/internal/version.buildDate=$BUILD_DATE" \
37
+ -o ./bin/crisp
38
+
17
39
- name : Create Release
18
40
env :
19
41
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
22
44
gh release create "$TAG" \
23
45
--repo="$GITHUB_REPOSITORY" \
24
46
--title="v${TAG#v}" \
25
- --generate-notes
47
+ --generate-notes \
48
+ ./bin/crisp
Original file line number Diff line number Diff line change 8
8
- id : check-added-large-files
9
9
10
10
- repo : https://github.com/Weburz/crisp
11
- rev : v0.1.1-alpha
11
+ rev : v0.1.2
12
12
hooks :
13
13
- id : crisp
14
14
name : lint git-commit messages
You can’t perform that action at this time.
0 commit comments