Upload assets #2
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 assets | |
on: | |
workflow_dispatch: | |
jobs: | |
upload: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Save GPG Private Key | |
run: echo "${{ secrets.GPG_PRIVATE_KEY }}" > gpg_private_key.txt | |
- name: Save Passphrase | |
run: echo "${{ secrets.PASSPHRASE }}" > passphrase.txt | |
- name: Upload to S3 | |
uses: jakejarvis/s3-sync-action@master | |
with: | |
args: --acl private --exclude '.git/*' | |
env: | |
AWS_S3_BUCKET: s3://port-tf-provider-assets/ | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} |