Merge pull request #4 from Samasource/update-sama-icon #39
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 Documents | |
on: | |
push: | |
branches: ["main"] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
contents: read | |
environment: production | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: arn:aws:iam::596059236576:role/github-actions-sama-documentation-604e424 | |
aws-region: us-east-1 | |
- name: Copy files to the production website with the AWS CLI | |
run: | | |
aws s3 sync . s3://sama-documentation-assets/GitHub --acl public-read |