teldrive/.github/workflows/release-dev.yml

36 lines
743 B
YAML
Raw Normal View History

2024-02-09 23:22:41 +08:00
name: Goreleaser-Dev
2023-08-16 20:48:32 +08:00
on:
push:
tags:
2024-02-09 01:31:13 +08:00
- "[0-9].[0-9]+.[0-9]+-dev"
2023-08-16 20:48:32 +08:00
2024-02-09 01:31:13 +08:00
permissions: write-all
2023-08-16 20:48:32 +08:00
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-09-08 19:06:59 +08:00
submodules: true
2024-02-09 01:31:13 +08:00
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:
2024-02-09 00:16:34 +08:00
go-version: stable
2024-02-09 01:31:13 +08:00
- uses: pnpm/action-setup@v3
with:
version: 8
2023-08-21 06:25:01 +08:00
- name: Run GoReleaser
2024-02-09 00:16:34 +08:00
uses: goreleaser/goreleaser-action@v5
2023-08-16 20:48:32 +08:00
with:
distribution: goreleaser
version: latest
2024-02-09 01:31:13 +08:00
args: release --clean --config .goreleaser.dev.yml
2023-08-16 20:48:32 +08:00
env:
2024-02-09 01:31:13 +08:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}