From e73aa18ab82446049bca61df31fc88efd3cdc5cc Mon Sep 17 00:00:00 2001 From: atif Date: Tue, 31 Dec 2024 18:42:59 +0500 Subject: [PATCH] adding prod_manual_deploy.yml for manual deploy --- .github/workflows/prod_manual_deploy.yml | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/.github/workflows/prod_manual_deploy.yml b/.github/workflows/prod_manual_deploy.yml index c54062a..8e1093a 100644 --- a/.github/workflows/prod_manual_deploy.yml +++ b/.github/workflows/prod_manual_deploy.yml @@ -62,24 +62,14 @@ jobs: - name: Configure AWS Production credentials uses: aws-actions/configure-aws-credentials@v1 - if: startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'release' with: aws-access-key-id: ${{ secrets.PROD_AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.PROD_AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.PROD_AWS_DEFAULT_REGION }} - # Script to deploy to development environment - - name: 'Deploy to S3: Development' - working-directory: ./website - if: github.ref == 'refs/heads/dev' - run: | - aws s3 sync build/gnosis-docs s3://${{ secrets.DEV_BUCKET_NAME }}/dev/conditionaltokens --exclude "*.html" --cache-control max-age=0,no-cache,no-store,public - aws s3 sync build/gnosis-docs s3://${{ secrets.DEV_BUCKET_NAME }}/dev --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html - # Script to deploy to release environment - name: 'Deploy to S3: Release' working-directory: ./website - if: startsWith(github.event.ref, 'refs/tags/v') || github.event_name == 'release' run: | aws s3 sync build/gnosis-docs s3://${{ secrets.RELEASE_BUCKET_NAME }}/conditionaltokens --delete --exclude "*.html" --exclude "sitemap.xml" --cache-control max-age=86400,public aws s3 sync build/gnosis-docs s3://${{ secrets.RELEASE_BUCKET_NAME }}/conditionaltokens --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html