From 1c87f0f63df7a94c450edd08853e7a79b1d73455 Mon Sep 17 00:00:00 2001 From: George Stagg Date: Fri, 5 Apr 2024 08:20:25 +0100 Subject: [PATCH] WIP: Debug AWS deployment --- .github/workflows/build.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1f496cfe..ad010dc0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,7 +2,7 @@ name: Build and deploy shinylive on: push: - branches: [main, deploy] + branches: [main, deploy, debug] pull_request: branches: [main] release: @@ -73,7 +73,7 @@ jobs: # Publish to AWS for shinylive.io # ===================================================== - name: Configure AWS Credentials - if: github.ref == 'refs/heads/deploy' + if: github.ref == 'refs/heads/debug' uses: aws-actions/configure-aws-credentials@v2 env: AWS_ACCOUNT_ID: "341745101194" @@ -84,14 +84,14 @@ jobs: aws-region: ${{ env.AWS_REGION }} - name: Deploy to S3 - if: github.ref == 'refs/heads/deploy' + if: github.ref == 'refs/heads/debug' env: AWS_CLOUDFRONT_DISTRIBUTION_ID: "E2SN9UWE8YY9EG" run: | pip install awscli - aws s3 sync _shinylive s3://shinylive.io --delete - aws s3 cp --content-type="application/wasm" --metadata-directive="REPLACE" s3://shinylive.io/r/shinylive/webr/library.data s3://shinylive.io/r/shinylive/webr/library.data - aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/*" + aws s3 sync _shinylive s3://shinylive.io/_debug --delete + aws s3 cp --content-type="application/wasm" --metadata-directive="REPLACE" s3://shinylive.io/_debug/r/shinylive/webr/library.data s3://shinylive.io/_debug/r/shinylive/webr/library.data + aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_DISTRIBUTION_ID --paths "/_debug/*" # ===================================================== # Upload _shinylive/ artifact