Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nullchinchilla committed Jan 24, 2025
1 parent 076ebea commit 645ac0f
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/build_and_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,29 @@ 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
sudo apt-get update
sudo apt-get install -y rclone
- name: Configure rclone
run: |
mkdir -p ~/.config/rclone
echo "[r2]
type = s3
provider = Cloudflare
env_auth = false
access_key_id = ${R2_ACCESS_KEY_ID}
secret_access_key = ${R2_SECRET_ACCESS_KEY}
endpoint = https://b5e397a549f0e6543dba8e1d83ca9924.r2.cloudflarestorage.com
" > ~/.config/rclone/rclone.conf
env:
R2_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
R2_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- 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" \
--recursive

0 comments on commit 645ac0f

Please sign in to comment.