Skip to content

Commit

Permalink
Add workflow to backup module assets
Browse files Browse the repository at this point in the history
  • Loading branch information
MPTG94 committed May 9, 2024
1 parent 5c7ac18 commit 5b349eb
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/upload-assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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/*'
src: ./
dest: s3://port-tf-provider-assets/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

0 comments on commit 5b349eb

Please sign in to comment.