sub2sing-box/.github/workflows/goreleaser.yaml

32 lines
600 B
YAML
Raw Normal View History

2024-03-12 02:24:23 +08:00
name: build
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
2024-03-12 02:58:16 +08:00
permissions:
contents: write
packages: write
2024-03-12 02:24:23 +08:00
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.5
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --rm-dist --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}