Skip to content

Commit

Permalink
Testing role condition against branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
lchoy committed Sep 2, 2023
1 parent e19574b commit 274c046
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ jobs:
bundle exec htmlproofer --alt-ignore '/.*/' --check-html --disable-external --assume-extension ./_site
- name: Configure AWS Credentials
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/lchoy/website-migration' }}
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
aws-region: us-east-1

- name: Upload to S3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/lchoy/website-migration' }}
run: |
aws s3 sync _site/ s3://hidivelab.org
- name: Invalidate Cache
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/lchoy/website-migration' }}
run: |
aws cloudfront create-invalidation --distribution-id ${{secrets.CF_DISTRIBUTION_ID}} --paths "/*"

0 comments on commit 274c046

Please sign in to comment.