@marcel91200 / caddy Mirror · read-only / commits / 2cab475b
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 14, 05:15 UTC

ci: Improve build artifact file names (#3168)

Francis Lavoie committed Mar 21, 2020 at 19:44 UTC 2cab475ba516fa725d012f53ca417c3e039607de
1 file changed +4 -1
.github/workflows/ci.yml
+4 -1
@@ -56,6 +56,7 @@ jobs:
56 # echo "::add-path::$(go env GOPATH)/bin"
57
58 - name: Print Go version and environment
59 + id: vars
60 run: |
61 printf "Using go at: $(which go)\n"
62 printf "Go version: $(go version)\n"
@@ -63,6 +64,8 @@ jobs:
64 go env
65 printf "\n\nSystem environment:\n\n"
66 env
67 + # Calculate the short SHA1 hash of the git commit
68 + echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
69
70 - name: Get dependencies
71 run: |
@@ -79,7 +82,7 @@ jobs:
82 - name: Publish Build Artifact
83 uses: actions/upload-artifact@v1
84 with:
82 - name: caddy_v2_${{ matrix.os }}
85 + name: caddy_v2_${{ runner.os }}_${{ steps.vars.outputs.short_sha }}
86 path: ${{ matrix.CADDY_BIN_PATH }}
87
88 # Commented bits below were useful to allow the job to continue