Skip to content
This repository was archived by the owner on Aug 21, 2025. It is now read-only.

Commit f8cfe7a

Browse files
add release-install-script job to release-cli workflow (#39)
1 parent 72ec5c6 commit f8cfe7a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/release-cli.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
release:
1111
# note: must use GitHub-hosted runner for publishing to NPM with --provenance flag
1212
runs-on: ubuntu-latest
13+
name: Release
1314
steps:
1415
- name: "Validate version"
1516
if: ${{ !startsWith(github.ref_name, 'v') }}
@@ -42,3 +43,21 @@ jobs:
4243
with:
4344
prerelease: ${{ contains(steps.parse_cli_version.outputs.cli_version, '-') }}
4445
make_latest: ${{ contains(steps.parse_cli_version.outputs.cli_version, '-') }}
46+
release-install-script:
47+
needs: release
48+
name: Release Install Script
49+
runs-on: warp-ubuntu-latest-x64-2x
50+
steps:
51+
- uses: actions/checkout@v4
52+
with:
53+
ref: "${{ github.ref_name }}"
54+
- name: Push to R2 Bucket
55+
uses: cloudflare/wrangler-action@v3
56+
with:
57+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
58+
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
59+
wranglerVersion: "3.83.0"
60+
preCommands: |
61+
cat install.sh
62+
command: |
63+
r2 object put install/hyp.sh -f install.sh --content-type text/x-sh

0 commit comments

Comments
 (0)