xmtop/.github/workflows/prerelease.yml

33 lines
818 B
YAML
Raw Normal View History

2020-02-29 20:11:34 +08:00
name: Build Go binaries
on:
push:
tags:
- "v*"
2020-02-29 20:11:34 +08:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Make binaries
uses: xxxserxxx/actions/golang-build@master
2020-02-29 22:51:10 +08:00
with:
args: darwin/amd64/1 darwin/386/1 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64 windows/386 freebsd/amd64 freebsd/386
2020-03-01 04:37:16 +08:00
env:
COMPRESS_FILES: true
- name: Pre-release
uses: "marvinpinto/action-automatic-releases@latest"
2020-03-01 04:37:16 +08:00
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ GITHUB_REF }}"
draft: true
title: "Release candidate"
files: |
.release/*.tgz
.release/*.zip