-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 969 Bytes
/
auto_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
name: AutoRelease
on:
push:
tags:
- v*
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.20"
- run: CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o xlsxcfg_linux_amd64 ./bin/xlsxcfg/
- run: CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o xlsxcfg_windows_amd64.exe ./bin/xlsxcfg/
- run: CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o xlsxcfg_darwin_amd64 ./bin/xlsxcfg/
- run: CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o xlsxcfg_darwin_arm64 ./bin/xlsxcfg/
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
xlsxcfg_linux_amd64
xlsxcfg_windows_amd64.exe
xlsxcfg_darwin_amd64
xlsxcfg_darwin_arm64
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}