Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit 140d090

Browse files
authored
Create go-cross-build.yml
1 parent a0684b2 commit 140d090

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/go-cross-build.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
on:
3+
push:
4+
tags:
5+
- v*
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Go
13+
uses: actions/setup-go@v2
14+
with:
15+
go-version: 1.17
16+
- name: Build Cross Platform
17+
uses: wzshiming/action-go-build-cross-plantform@v1
18+
- name: Upload Release Assets
19+
uses: wzshiming/action-upload-release-assets@v1
20+
env:
21+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- name: Log into registry
23+
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
24+
- name: Upload Release Images
25+
uses: wzshiming/action-upload-release-images@v1

0 commit comments

Comments
 (0)