xmtop/.github/workflows/prerelease.yml

41 lines
1.1 KiB
YAML
Raw Normal View History

2020-03-01 06:33:32 +08:00
name: Create pre-release
2020-02-29 20:11:34 +08:00
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@v2.2.3
2020-02-29 22:51:10 +08:00
with:
args: darwin/amd64/1 darwin/arm64/1 linux/amd64 linux/386 linux/arm64 linux/arm7 linux/arm6 linux/arm5 windows/amd64/1 windows/386/1 freebsd/amd64/1
2020-03-01 04:37:16 +08:00
env:
COMPRESS_FILES: true
2020-03-06 22:34:06 +08:00
SRCPATH: ./cmd/gotop
2020-03-01 04:37:16 +08:00
2020-03-01 06:33:32 +08:00
- name: Get tag name
shell: bash
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
id: tag_name
- name: Pre-release
uses: "marvinpinto/action-automatic-releases@latest"
2020-03-01 04:37:16 +08:00
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
2020-03-01 06:33:32 +08:00
automatic_release_tag: "${{ steps.tag_name.outputs.tag }}"
draft: true
2020-03-07 04:11:37 +08:00
title: "${{ steps.tag_name.output.tag }} release candidate"
files: |
.release/*.tgz
.release/*.zip
.release/*.rpm
.release/*.deb