mirror of
https://github.com/appleboy/drone-discord.git
synced 2026-06-04 18:33:47 +08:00
6dc40cfa7f
- Update CodeQL GitHub Actions from v2 to v3 in codeql.yml - Change goreleaser argument from `--rm-dist` to `--clean` in goreleaser.yml - Update golangci-lint GitHub Action from v3 to v5 in lint.yml - Update the Docker container for linting from golang:1.19-alpine to golang:1.22-alpine in lint.yml - Standardize quotes around `checksums.txt` in .goreleaser.yaml - Add changelog configuration with groups for features, bug fixes, enhancements, refactor, build process updates, documentation updates, and others in .goreleaser.yaml Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
33 lines
647 B
YAML
33 lines
647 B
YAML
name: Goreleaser
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
goreleaser:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Setup go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "^1"
|
|
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v5
|
|
with:
|
|
# either 'goreleaser' (default) or 'goreleaser-pro'
|
|
distribution: goreleaser
|
|
version: latest
|
|
args: release --clean
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|