Skip to content

Commit

Permalink
- fix: upload file to R2
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Mar 1, 2024
1 parent 78ad5c4 commit aee0173
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
strategy:
matrix:
include:
- arch: x86_64-unknown-linux-gnu
os: ubuntu-22.04
# - arch: x86_64-unknown-linux-gnu
# os: ubuntu-22.04
- arch: aarch64-apple-darwin
os: macos-14
- arch: x86_64-pc-windows-msvc
Expand Down Expand Up @@ -48,23 +48,19 @@ jobs:
# tag: ${{ github.ref }}
# overwrite: true

- name: Build
run: |
mkdir files-to-r2
cp target/release/shinkai_node files-to-r2/shinkai-node-0.4.7
cp target/release/shinkai_node files-to-r2/shinkai-node-latest
- name: Upload binaries to R2 bucket
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: shinkai-download
source-dir: target/release/shinkai_node
source-dir: files-to-r2
# destination-dir: ./shinkai-node/${{ matrix.arch }}/shinkai-node-${{ github.ref_name }}
destination-dir: ./shinkai-node/${{ matrix.arch }}/shinkai-node-0.4.7

- name: Override latest binary in R2 Bucket
uses: ryand56/r2-upload-action@latest
with:
r2-account-id: ${{ secrets.R2_ACCOUNT_ID }}
r2-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
r2-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
r2-bucket: shinkai-download
source-dir: target/release/shinkai_node
destination-dir: ./shinkai-node/${{ matrix.arch }}/shinkai-node-latest
destination-dir: ./shinkai-node/${{ matrix.arch }}/

0 comments on commit aee0173

Please sign in to comment.