Skip to content

Commit

Permalink
add stuff for r2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
0xcaff committed Aug 14, 2024
1 parent 6b98a12 commit fc459a2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,36 @@ jobs:
steps:
- uses: actions/download-artifact@v4

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
aws-region: auto

- run: |
mkdir release
mv build-macos-latest-aarch64-apple-darwin/protobuf.duckdb_extension ./release/protobuf.osx_arm64.duckdb_extension
mv build-ubuntu-latest-x86_64-unknown-linux-gnu/protobuf.duckdb_extension ./release/protobuf.linux_amd64_gcc4.duckdb_extension
mv build-windows-latest-x86_64-pc-windows-msvc/protobuf.duckdb_extension ./release/protobuf.windows_amd64.duckdb_extension
- name: upload files to r2
run: |
aws s3 cp \
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
./release/protobuf.osx_arm64.duckdb_extension
s3://duckdb-extensions/v1.0.0/osx_arm64/protobuf.duckdb_extension
aws s3 cp \
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
./release/protobuf.linux_amd64_gcc4.duckdb_extension
s3://duckdb-extensions/v1.0.0/linux_amd64_gcc4/protobuf.duckdb_extension
aws s3 cp \
--endpoint-url https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com \
./release/protobuf.windows_amd64.duckdb_extension
s3://duckdb-extensions/v1.0.0/windows_amd64/protobuf.duckdb_extension
- name: release
uses: softprops/action-gh-release@v2
with:
Expand Down

0 comments on commit fc459a2

Please sign in to comment.