Release with GoReleaser. Allow start without key configuration (#788)

This commit is contained in:
David Zhao
2022-06-26 12:27:43 -07:00
committed by GitHub
parent e5f53a0d21
commit b316698409
8 changed files with 192 additions and 59 deletions
+40
View File
@@ -0,0 +1,40 @@
name: Release
on:
workflow_dispatch:
push:
# only publish on version tags
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
release:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Fetch all tags
run: git fetch --force --tags
- uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/go/bin
~/.cache
key: livekit-server
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}