-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.08 KB
/
build-and-release.yml
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
name: Build and Release
on:
push:
tags:
- "v*.*.*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Install dependencies
run: go get .
- name: Build for Linux amd64
run: GOOS=linux GOARCH=amd64 go build -v -ldflags="-w -s" -o homedash-linux-amd64 .
- name: Build for Linux arm64
run: GOOS=linux GOARCH=arm64 go build -v -ldflags="-w -s" -o homedash-linux-arm64 .
- name: Set up Git
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
- name: "Build Changelog"
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v5
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ./homedash-*
generate_release_notes: true
append_body: true
body: "${{steps.build_changelog.outputs.changelog}}"