Skip to content

Commit

Permalink
ci: github auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
das6ng committed Nov 12, 2023
1 parent 04fae20 commit 395413f
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/auto_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: AutoRelease

on:
push:
tags:
- v*

jobs:
release:
runs-on: ubuntu-latest
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 }}

0 comments on commit 395413f

Please sign in to comment.