Skip to content

Commit

Permalink
artoo
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jan 24, 2025
1 parent 9fcdb90 commit 1b68e3e
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,14 +205,24 @@ jobs:
with:
path: artifacts

- name: Set up AWS configuration
- name: Install rclone
run: |
aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID }}
aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws configure set region apac
aws configure set output json
aws configure set default.s3.max_attempts 100
curl https://rclone.org/install.sh | sudo bash
- name: Configure rclone
run: |
mkdir -p ~/.config/rclone
cat > ~/.config/rclone/rclone.conf << EOF
[r2]
type = s3
provider = Cloudflare
access_key_id = ${{ secrets.AWS_ACCESS_KEY_ID }}
secret_access_key = ${{ secrets.AWS_SECRET_ACCESS_KEY }}
region = auto
endpoint = https://b5e397a549f0e6543dba8e1d83ca9924.r2.cloudflarestorage.com
acl = private
EOF
- name: Upload to Cloudflare R2
run: |
aws s3 cp ./artifacts/${{ matrix.dir }}-latest s3://geph5/${{ matrix.dir }}-latest --recursive --endpoint-url=https://b5e397a549f0e6543dba8e1d83ca9924.r2.cloudflarestorage.com
rclone copy ./artifacts/${{ matrix.dir }}-latest r2:geph5/${{ matrix.dir }}-latest

0 comments on commit 1b68e3e

Please sign in to comment.