49 lines
923 B
YAML
49 lines
923 B
YAML
name: Release
|
|
|
|
on:
|
|
workflow_run:
|
|
workflows:
|
|
- Build
|
|
types:
|
|
- completed
|
|
branches:
|
|
- actions
|
|
# tags:
|
|
# - '*'
|
|
|
|
jobs:
|
|
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
# - name: Setup
|
|
# uses: actions/setup-go@v2
|
|
# with:
|
|
# go-version: 1.14
|
|
|
|
# - uses: actions/cache@v2
|
|
# with:
|
|
# path: ~/go/pkg/mod
|
|
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
# restore-keys: |
|
|
# ${{ runner.os }}-go-
|
|
|
|
# - name: Checkout
|
|
# uses: actions/checkout@v2
|
|
# with:
|
|
# fetch-depth: 0
|
|
|
|
# - name: Tools
|
|
# run: make install
|
|
|
|
# - name: UI
|
|
# run: make ui
|
|
|
|
- name: GoReleaser
|
|
uses: goreleaser/goreleaser-action@v2
|
|
with:
|
|
version: latest
|
|
args: release --rm-dist
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|