mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-07-08 13:14:32 +00:00
split assets to R2 bucket in cloudflare
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
Some checks failed
Deploy to Cloudflare Pages / deploy (push) Has been cancelled
This commit is contained in:
parent
ad9f65ffed
commit
d8703b75c8
4 changed files with 26 additions and 8 deletions
12
.github/workflows/deploy-cloudflare.yml
vendored
12
.github/workflows/deploy-cloudflare.yml
vendored
|
|
@ -22,9 +22,21 @@ jobs:
|
|||
|
||||
- run: npm run build
|
||||
env:
|
||||
BASE_PATH: /
|
||||
GAME_ASSETS_BASE_URL: https://assets.tribes2.online/game/base/
|
||||
RELAY_URL: ${{ secrets.RELAY_URL }}
|
||||
LOG_LEVEL: ${{ secrets.LOG_LEVEL }}
|
||||
|
||||
- name: Sync game assets to R2
|
||||
run: aws s3 sync docs/base/ s3://t2-assets/game/base/ --follow-symlinks --delete
|
||||
env:
|
||||
AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
|
||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
|
||||
AWS_ENDPOINT_URL: https://${{ secrets.CF_ACCOUNT_ID }}.r2.cloudflarestorage.com
|
||||
|
||||
- name: Remove game assets from Pages deploy
|
||||
run: rm -rf docs/base
|
||||
|
||||
- uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue