Parcourir la source

cicd: Include branch name in snapshots

jamesread il y a 3 ans
Parent
commit
a92ac09235
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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
       - name: Archive binaries
         uses: actions/upload-artifact@v3.1.0
         uses: actions/upload-artifact@v3.1.0
         with: 
         with: 
-          name: dist
+          name: "OliveTin-snapshot-${{ github.ref_name }}-${{ github.short_ref }}-dist"
           path: dist/OliveTin*.*
           path: dist/OliveTin*.*
 
 
       - name: Archive integration tests
       - name: Archive integration tests

+ 1 - 1
.goreleaser.yml

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