Browse Source

Fix Go Release action and use xz for archives

Douglas Thrift 1 year ago
parent
commit
1df1f9b7c9
2 changed files with 4 additions and 1 deletions
  1. 2 0
      .github/workflows/release.yml
  2. 2 1
      .goreleaser.yaml

+ 2 - 0
.github/workflows/release.yml

@@ -20,5 +20,7 @@ jobs:
           go-version: 1.19.x
           cache: true
       - uses: goreleaser/goreleaser-action@v3
+        with:
+          args: release --rm-dist
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

+ 2 - 1
.goreleaser.yaml

@@ -10,7 +10,8 @@ builds:
       - linux
     main: ./cmd/presence
 archives:
-  - wrap_in_directory: true
+  - format: tar.xz
+    wrap_in_directory: true
 checksum:
   name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.sha256"
 release: