From a26838076f2470ebec9d2ff73f6311a28df3366a Mon Sep 17 00:00:00 2001 From: rluisr Date: Fri, 5 Jul 2024 21:58:13 +0900 Subject: [PATCH] build: update goreleaser configuration files --- .github/workflows/release.yml | 9 ++++----- .goreleaser.yml | 4 ++-- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4348638..fd994bb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,7 +3,7 @@ name: release on: push: tags: - - '*' + - "*" jobs: binary_release: @@ -13,12 +13,12 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version-file: 'go.mod' + go-version-file: "go.mod" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v6 with: version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} @@ -26,8 +26,7 @@ jobs: name: Container Release runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - name: Docker meta id: meta uses: docker/metadata-action@v5 diff --git a/.goreleaser.yml b/.goreleaser.yml index b061e93..20d73ab 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -21,9 +21,9 @@ builds: goarm: - "7" archives: - - name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' + - name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" release: github: owner: rluisr name: mysqlrouter_exporter - prerelease: auto \ No newline at end of file + prerelease: false