diff --git a/.github/workflows/go-build.yml b/.github/workflows/go-build.yml index 28cc054..c470c23 100644 --- a/.github/workflows/go-build.yml +++ b/.github/workflows/go-build.yml @@ -20,17 +20,24 @@ jobs: - name: Change go env run: go env -w GO111MODULE=on - - name: Build + - name: Build Windows env: GOOS: windows GOARCH: amd64 working-directory: ./backup4abap_go - run: go build -o backup.exe ./main.go + run: go build -o backup_win64.exe ./main.go + + - name: Build Mac + env: + GOOS: darwin + GOARCH: amd64 + working-directory: ./backup4abap_go + run: go build -o backup_mac64 ./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 + body: "压缩代码下载器,用于从已配置 backup4abap_interface 的 ICF 服务通过 HTTP 请求下载代码包到本地,并自动解压。" + files: ./backup4abap_go/backup* token: ${{ secrets.RELEASE_TOKEN }}