Skip to content

Commit

Permalink
WIP: Debug AWS deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
georgestagg committed Apr 5, 2024
1 parent e07ea90 commit 1c87f0f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and deploy shinylive

on:
push:
branches: [main, deploy]
branches: [main, deploy, debug]
pull_request:
branches: [main]
release:
Expand Down Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit 1c87f0f

Please sign in to comment.