add renovate and update action versions #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload Website | |
on: | |
push: | |
branches: | |
- master | |
permissions: | |
id-token: write # This is required for aws oidc connection | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/[email protected] | |
- name: Configure AWS credentials from AWS account | |
uses: aws-actions/[email protected] | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
role-session-name: GitHub-OIDC-TERRAFORM | |
- name: Deploy static site to S3 bucket | |
run: aws s3 sync ./ s3://${{ secrets.AWS_BUCKET_NAME }} --exclude '.github/*' --exclude '.git/*' --delete |