2020-03-01 06:33:32 +08:00
|
|
|
name: Create pre-release
|
2020-02-29 20:11:34 +08:00
|
|
|
|
2020-03-01 06:15:28 +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
|
2022-07-16 00:14:49 +08:00
|
|
|
uses: xxxserxxx/actions/golang-build@v2.2.3
|
2020-02-29 22:51:10 +08:00
|
|
|
with:
|
2021-07-21 04:03:53 +08:00
|
|
|
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
|
|
|
|
|
2020-03-01 06:15:28 +08:00
|
|
|
- name: Pre-release
|
|
|
|
uses: "marvinpinto/action-automatic-releases@latest"
|
2020-03-01 04:37:16 +08:00
|
|
|
with:
|
2020-03-01 06:15:28 +08:00
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
2020-03-01 06:33:32 +08:00
|
|
|
automatic_release_tag: "${{ steps.tag_name.outputs.tag }}"
|
2020-03-01 06:15:28 +08:00
|
|
|
draft: true
|
2020-03-07 04:11:37 +08:00
|
|
|
title: "${{ steps.tag_name.output.tag }} release candidate"
|
2020-03-01 06:15:28 +08:00
|
|
|
files: |
|
|
|
|
.release/*.tgz
|
|
|
|
.release/*.zip
|
2022-02-09 01:32:34 +08:00
|
|
|
.release/*.rpm
|
|
|
|
.release/*.deb
|