Skip to content

Commit

Permalink
ci: upload release artifact to supabase s3 bucket (#1812)
Browse files Browse the repository at this point in the history
Uploads the release artifact to a Supabase owned S3 bucket for easy
releases.
  • Loading branch information
hf authored Nov 20, 2024
1 parent a616451 commit 7de6bfb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ jobs:
mv auth-arm64 auth
tar -czvf auth-v$RELEASE_VERSION-arm64.tar.gz auth gotrue migrations/
- name: configure aws credentials for uploading release artifacts
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ secrets.PROD_AWS_ROLE }}
aws-region: us-east-1

- name: Upload release artifacts
if: ${{ steps.release.outputs.release_created == 'true' || steps.release.outputs.prs_created == 'true' }}
run: |
Expand Down Expand Up @@ -126,6 +132,8 @@ jobs:
-f "sha=$GITHUB_SHA"
fi
fi
aws s3api put-object --bucket ${{ secrets.PROD_ARTIFACTS_BUCKET }} --key auth-v$RELEASE_VERSION-arm64.tar.gz --body ./auth-v$RELEASE_VERSION-arm64.tar.gz
fi
GH_TOKEN='${{ github.token }}' gh release upload $RELEASE_NAME ./auth-v$RELEASE_VERSION-x86.tar.gz ./auth-v$RELEASE_VERSION-arm64.tar.gz
Expand Down

0 comments on commit 7de6bfb

Please sign in to comment.