mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-10-03 01:30:44 +09:00
- Prevent the floating v1 major tag from cutting a goreleaser release or a docker image build
30 lines
646 B
YAML
30 lines
646 B
YAML
name: Goreleaser
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
# full semver only; the floating major tag (v1) must not cut a release
|
|
- "v[0-9]*.[0-9]*.[0-9]*"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v7
|
|
with:
|
|
# either 'goreleaser' (default) or 'goreleaser-pro'
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|