From 4ca595faa3ef916b4ce3d9e6752eea437c79c392 Mon Sep 17 00:00:00 2001 From: Mor Paz Date: Thu, 9 May 2024 17:08:26 +0300 Subject: [PATCH 1/4] Update WF --- .github/workflows/upload-assets.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/upload-assets.yml b/.github/workflows/upload-assets.yml index 994b8991..7ac2fc13 100644 --- a/.github/workflows/upload-assets.yml +++ b/.github/workflows/upload-assets.yml @@ -16,8 +16,7 @@ jobs: uses: jakejarvis/s3-sync-action@master with: args: --acl private --exclude '.git/*' - src: ./ - dest: s3://port-tf-provider-assets/ 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 }} \ No newline at end of file From 99352e478d24b60ca8028f6ecd1c8c07b2a9949c Mon Sep 17 00:00:00 2001 From: Mor Paz Date: Thu, 9 May 2024 17:10:07 +0300 Subject: [PATCH 2/4] Fix bucket path --- .github/workflows/upload-assets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upload-assets.yml b/.github/workflows/upload-assets.yml index 7ac2fc13..dd367ce0 100644 --- a/.github/workflows/upload-assets.yml +++ b/.github/workflows/upload-assets.yml @@ -17,6 +17,6 @@ jobs: with: args: --acl private --exclude '.git/*' env: - AWS_S3_BUCKET: s3://port-tf-provider-assets/ + 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 }} \ No newline at end of file From b33da73dc4736d83b51b3c0ef40d78b8966b5375 Mon Sep 17 00:00:00 2001 From: Mor Paz Date: Thu, 9 May 2024 17:11:24 +0300 Subject: [PATCH 3/4] Fix bucket name --- .github/workflows/upload-assets.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/upload-assets.yml b/.github/workflows/upload-assets.yml index dd367ce0..ce214bbe 100644 --- a/.github/workflows/upload-assets.yml +++ b/.github/workflows/upload-assets.yml @@ -17,6 +17,6 @@ jobs: with: args: --acl private --exclude '.git/*' env: - AWS_S3_BUCKET: s3://port-tf-provider-assets + AWS_S3_BUCKET: port-tf-provider-assets AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file From 309355e46bca51615f5fb3ca6216971fa80bb14c Mon Sep 17 00:00:00 2001 From: Mor Paz Date: Thu, 9 May 2024 17:16:29 +0300 Subject: [PATCH 4/4] Remove the workflow after backup --- .github/workflows/upload-assets.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/upload-assets.yml diff --git a/.github/workflows/upload-assets.yml b/.github/workflows/upload-assets.yml deleted file mode 100644 index ce214bbe..00000000 --- a/.github/workflows/upload-assets.yml +++ /dev/null @@ -1,22 +0,0 @@ -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: port-tf-provider-assets - AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} - AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} \ No newline at end of file