2021-01-09 18:18:31 -05:00
|
|
|
name: 'CI'
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
goreleaser:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
-
|
|
|
|
name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-05-14 01:13:26 -04:00
|
|
|
-
|
|
|
|
name: Install libopus-dev
|
|
|
|
run: sudo apt-get -y install libopus-dev
|
2021-01-09 18:18:31 -05:00
|
|
|
-
|
|
|
|
name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-12-12 23:54:32 -05:00
|
|
|
go-version: 1.17
|
|
|
|
-
|
|
|
|
name: go-license install
|
|
|
|
run: go get github.com/google/go-licenses
|
|
|
|
-
|
|
|
|
name: go-license save
|
|
|
|
run: go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./dist/LICENSES"
|
2021-01-09 18:18:31 -05:00
|
|
|
-
|
|
|
|
name: Run GoReleaser
|
|
|
|
uses: goreleaser/goreleaser-action@v2
|
|
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
|
|
with:
|
|
|
|
version: latest
|
|
|
|
args: release --rm-dist
|
|
|
|
env:
|
2021-12-12 23:54:32 -05:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
|
|
name: Upload assets
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: mdb
|
|
|
|
path: dist/*
|