teldrive/.github/workflows/goreleaser.yml

34 lines
645 B
YAML
Raw Normal View History

2023-08-16 20:48:32 +08:00
name: Goreleaser
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.21
2023-08-21 06:22:20 +08:00
cache: true
2023-08-16 20:48:32 +08:00
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
with:
distribution: goreleaser
version: latest
2023-08-21 06:22:20 +08:00
args: release --rm-dist --timeout 1h
2023-08-16 20:48:32 +08:00
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}