Skip to content

Commit

Permalink
release: add shadow publishing to R2
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Nov 27, 2023
1 parent 7f2485e commit 818cb54
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/rtx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,8 @@ jobs:
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
CLOUDFLARE_ACCESS_KEY_ID: ${{ secrets.CLOUDFLARE_ACCESS_KEY_ID }}
CLOUDFLARE_SECRET_ACCESS_KEY: ${{ secrets.CLOUDFLARE_SECRET_ACCESS_KEY }}
- name: homebrew-tap push
run: git push
working-directory: homebrew-tap
Expand Down
10 changes: 10 additions & 0 deletions scripts/publish-r2.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euxo pipefail

export AWS_DEFAULT_REGION=auto
export AWS_DEFAULT_OUTPUT=json
export AWS_ENDPOINT_URL=https://6e243906ff257b965bcae8025c2fc344.r2.cloudflarestorage.com
export AWS_ACCESS_KEY_ID=$CLOUDFLARE_ACCESS_KEY_ID
export AWS_SECRET_ACCESS_KEY=$CLOUDFLARE_SECRET_ACCESS_KEY

./rtx/scripts/publish-s3.sh || true
1 change: 1 addition & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ gpg -u 408B88DB29DDE9E0 --output "$RELEASE_DIR"/install.sh.sig --sign "$RELEASE_
NPM_PREFIX=@jdxcode/rtx ./rtx/scripts/release-npm.sh
NPM_PREFIX=rtx-cli ./rtx/scripts/release-npm.sh
./rtx/scripts/publish-s3.sh
./rtx/scripts/publish-r2.sh

./rtx/scripts/render-homebrew.sh >homebrew-tap/rtx.rb
pushd homebrew-tap
Expand Down

0 comments on commit 818cb54

Please sign in to comment.