teldrive/.github/workflows/goreleaser.yml

31 lines
585 B
YAML
Raw Normal View History

2023-08-16 20:48:32 +08:00
name: Goreleaser
on:
push:
tags:
2023-08-21 06:25:01 +08:00
- "*"
2023-08-16 20:48:32 +08:00
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
2023-08-21 06:25:01 +08:00
- name: Checkout
2023-08-16 20:48:32 +08:00
uses: actions/checkout@v3
with:
fetch-depth: 0
2023-08-21 06:25:01 +08:00
- name: Set up Go
2023-08-21 06:42:29 +08:00
uses: actions/setup-go@v4
2023-08-16 20:48:32 +08:00
with:
go-version: 1.21
2023-08-21 06:25:01 +08:00
- name: Run GoReleaser
2023-08-21 06:42:29 +08:00
uses: goreleaser/goreleaser-action@v4
2023-08-16 20:48:32 +08:00
with:
distribution: goreleaser
version: latest
2023-08-21 06:42:29 +08:00
args: release --clean
2023-08-16 20:48:32 +08:00
env:
2023-08-21 06:25:01 +08:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}