Skip to content

Commit

Permalink
adding prod_manual_deploy.yml for manual deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
atif committed Dec 31, 2024
1 parent cc6f9df commit e73aa18
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/prod_manual_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e73aa18

Please sign in to comment.