summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFrancis Lavoie <lavofr@gmail.com>2020-03-21 19:44:51 -0400
committerGitHub <noreply@github.com>2020-03-21 17:44:51 -0600
commit2cab475ba516fa725d012f53ca417c3e039607de (patch)
treeded399cd72802b6ee4b8447eab1536eae9db0ff4 /.github
parentc32f383a0153ea5f53cbccb3f87ed9ffc4da7703 (diff)
ci: Improve build artifact file names (#3168)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml5
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 247b52e..0bc262b 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -56,6 +56,7 @@ jobs:
# echo "::add-path::$(go env GOPATH)/bin"
- name: Print Go version and environment
+ id: vars
run: |
printf "Using go at: $(which go)\n"
printf "Go version: $(go version)\n"
@@ -63,6 +64,8 @@ jobs:
go env
printf "\n\nSystem environment:\n\n"
env
+ # Calculate the short SHA1 hash of the git commit
+ echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
- name: Get dependencies
run: |
@@ -79,7 +82,7 @@ jobs:
- name: Publish Build Artifact
uses: actions/upload-artifact@v1
with:
- name: caddy_v2_${{ matrix.os }}
+ name: caddy_v2_${{ runner.os }}_${{ steps.vars.outputs.short_sha }}
path: ${{ matrix.CADDY_BIN_PATH }}
# Commented bits below were useful to allow the job to continue