Skip to content

Commit

Permalink
🤖 github action auto build go
Browse files Browse the repository at this point in the history
  • Loading branch information
chunrichi committed Mar 3, 2023
1 parent f6202df commit 73f95d0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/go-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Go build

# 触发事件 含标签v**g
on:
push:
tags:
- "v**g"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Change go env
run: go env -w GO111MODULE=on

- name: Build
env:
GOOS: windows
GOARCH: amd64
working-directory: ./backup4abap_go
run: go build -o backup.exe ./main.go

- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: "压缩代码下载器,用于从已配置 backup4abap_interface 的 ICF 服务通过 HTTP 请求下载代码包到本地,并自动解压。目前仅生成 win64 的运行程序"
files: ./backup4abap_go/backup.exe
token: ${{ secrets.RELEASE_TOKEN }}

0 comments on commit 73f95d0

Please sign in to comment.