1
0
mirror of https://github.com/stryan/mumble-discord-bridge.git synced 2024-12-27 17:05:40 -05:00

chore: build on main branch

This commit is contained in:
Tyler Stiene 2021-12-14 01:18:47 -05:00
parent c28a9cd5f8
commit c0ed696543

View File

@ -1,8 +1,11 @@
name: 'CI'
on:
push:
tags:
- 'v*'
branches:
- main
pull_request:
branches:
- main
jobs:
goreleaser:
@ -27,6 +30,15 @@ jobs:
-
name: go-license save
run: go-licenses save ./cmd/mumble-discord-bridge --force --save_path="./dist/LICENSES"
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: build --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
@ -36,9 +48,9 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# -
# name: Upload assets
# uses: actions/upload-artifact@v2
# with:
# name: mdb
# path: dist/*
-
name: Upload assets
uses: actions/upload-artifact@v2
with:
name: mdb
path: dist/*