فهرست منبع

cicd: Include branch name in snapshots

jamesread 3 سال پیش
والد
کامیت
a92ac09235
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      .github/workflows/build-snapshot.yml
  2. 1 1
      .goreleaser.yml

+ 1 - 1
.github/workflows/build-snapshot.yml

@@ -34,7 +34,7 @@ jobs:
       - name: Archive binaries
         uses: actions/upload-artifact@v3.1.0
         with: 
-          name: dist
+          name: "OliveTin-snapshot-${{ github.ref_name }}-${{ github.short_ref }}-dist"
           path: dist/OliveTin*.*
 
       - name: Archive integration tests

+ 1 - 1
.goreleaser.yml

@@ -39,7 +39,7 @@ builds:
 checksum:
   name_template: 'checksums.txt'
 snapshot:
-  name_template: "{{ .Commit }}"
+  name_template: "{{ .Branch }}-{{ .Commit }}"
 changelog:
   sort: asc
   filters: