Skip to content

Commit 1f63c4e

Browse files
committed
debug action
1 parent a097dcd commit 1f63c4e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
strategy:
11+
matrix:
12+
go_version: [1.13.x]
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v1
17+
- name: Build with xgo
18+
uses: crazy-max/ghaction-xgo@v1
19+
with:
20+
xgo_version: latest
21+
go_version: ${{ matrix.go_version }}
22+
dest: build
23+
prefix: myapp
24+
targets: windows/386,windows/amd64,linux/386,linux/amd64,darwin/386,darwin/amd64
25+
v: true
26+
x: false
27+
ldflags: -s -w
28+
- name: Create Release
29+
uses: actions/[email protected]
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
with:
33+
tag_name: ${{ github.ref }}
34+
release_name: Release ${{ github.ref }}
35+
draft: false
36+
prerelease: false
37+
- name: Upload Release Assets
38+
uses: glentiki/xbin-release-action@88d1a3478f9221d375570e452381d523db53a757
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
with:
42+
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
43+
assets_path: ./build

0 commit comments

Comments
 (0)