goreleaser: remove deprecated options

This commit is contained in:
nadoo 2023-03-13 20:42:36 +08:00
parent 7e800555d7
commit 6815f866cb
2 changed files with 3 additions and 5 deletions

View File

@ -42,7 +42,7 @@ jobs:
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
version: latest version: latest
args: build --snapshot --rm-dist args: build --snapshot --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@ -66,7 +66,7 @@ jobs:
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
if: "!startsWith(github.ref, 'refs/tags/')" if: "!startsWith(github.ref, 'refs/tags/')"
with: with:
name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-macos-arm64 name: ${{ env.APP_NAME }}-dev-${{ env.SHA_SHORT }}-darwin-arm64
path: | path: |
./dist/default_darwin_arm64/${{ env.APP_NAME }} ./dist/default_darwin_arm64/${{ env.APP_NAME }}
@ -83,7 +83,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
version: latest version: latest
args: release --rm-dist args: release --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -35,8 +35,6 @@ archives:
- id: default - id: default
builds: builds:
- default - default
replacements:
darwin: macos
wrap_in_directory: true wrap_in_directory: true
format: tar.gz format: tar.gz
format_overrides: format_overrides: