Skip to content

Commit 6930018

Browse files
author
Néstor Salceda
committed
ci: Release without the full git reference on s3 bucket
1 parent 82ed540 commit 6930018

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,17 @@ jobs:
4444
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4545
aws-region: eu-west-1
4646

47+
- name: Prepare
48+
id: prep
49+
run: |
50+
echo ::set-output name=VERSION::$(echo "${{ github.ref }}" | sed -e 's/.*\/v\(.*\)/\1/')
51+
4752
- name: Build and Upload Version
4853
run: make ci
4954
working-directory: ./templates
5055
env:
5156
S3_BUCKET: cf-templates-cloudvision-ci
52-
S3_PREFIX: ${{ github.ref }}
57+
S3_PREFIX: ${{ steps.prep.outputs.VERSION }}
5358

5459
- name: Build and Upload Latest
5560
run: make ci

0 commit comments

Comments
 (0)