From d1a1cc50504d871758264d62ae2755b0d932a438 Mon Sep 17 00:00:00 2001 From: Michael Munsch Date: Sun, 14 Apr 2024 11:26:09 +0200 Subject: [PATCH] ci: use repository var --- .github/workflows/cd_frontend.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd_frontend.yaml b/.github/workflows/cd_frontend.yaml index 6870fa4..1abd49e 100644 --- a/.github/workflows/cd_frontend.yaml +++ b/.github/workflows/cd_frontend.yaml @@ -35,8 +35,8 @@ jobs: - name: Deploy run: | - aws s3 sync dist/. s3://${{ env.FRONTEND_S3_BUCKET_NAME }}/ --cache-control max-age=604800 --exclude "*.html" - aws s3 sync dist/. s3://${{ env.FRONTEND_S3_BUCKET_NAME }}/ --cache-control max-age=60 --include "*.html" + aws s3 sync dist/. s3://${{ vars.FRONTEND_S3_BUCKET_NAME }}/ --cache-control max-age=604800 --exclude "*.html" + aws s3 sync dist/. s3://${{ vars.FRONTEND_S3_BUCKET_NAME }}/ --cache-control max-age=60 --include "*.html" env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}