update my keys w/ 2y expiration #6
This file contains hidden or 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 to S3 | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| upload: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Copy artifacts to s3 | |
| shell: bash | |
| env: | |
| aws_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws_secret_access_key: ${{ secrets.AWS_SECRET_KEY_ID }} | |
| aws_s3_bucket: ${{ secrets.AWS_BUCKET_NAME }} | |
| run: | | |
| sudo apt-get update && sudo apt-get -y install awscli | |
| aws configure set aws_access_key_id $aws_key_id | |
| aws configure set aws_secret_access_key $aws_secret_access_key | |
| aws configure set default.region us-east-2 | |
| aws s3 cp --recursive .well-known s3://$aws_s3_bucket/.well-known/ | |