-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (51 loc) · 1.31 KB
/
publish.yaml
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
name: Publish
on:
push:
branches:
- master
jobs:
publish:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: go build -o bin/godm-windows-amd64 ./cmd/godm/.
name: Build Windows
env:
GOOS: windows
GOARCH: amd64
- run: go build -o bin/godm-linux-amd64 ./cmd/godm/.
name: Build Linux
env:
GOOS: linux
GOARCH: amd64
- run: go build -o bin/godm-linux-arm64 ./cmd/godm/.
name: Build Linux (Arm64)
env:
GOOS: linux
GOARCH: arm64
- run: go build -o bin/godm-darwin-amd64 ./cmd/godm/.
name: Build MacOS (Amd64)
env:
GOOS: darwin
GOARCH: amd64
- run: go build -o bin/godm-darwin-arm64 ./cmd/godm/.
name: Build MacOS (Arm64)
env:
GOOS: darwin
GOARCH: arm64
- uses: actions/upload-artifact@v4
with:
name: godm-${{ matrix.os }}
path: ./bin
- uses: softprops/action-gh-release@v2
with:
files: ./bin/*
body: ${{ github.sha }}
draft: false
tag_name: PreReleaseCandidate
prerelease: true