Skip to content

Commit

Permalink
add release-install-script job to release-cli workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmingtarja committed Nov 7, 2024
1 parent 72ec5c6 commit d8af8a5
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
release:
# note: must use GitHub-hosted runner for publishing to NPM with --provenance flag
runs-on: ubuntu-latest
name: Release
steps:
- name: "Validate version"
if: ${{ !startsWith(github.ref_name, 'v') }}
Expand Down Expand Up @@ -42,3 +43,21 @@ jobs:
with:
prerelease: ${{ contains(steps.parse_cli_version.outputs.cli_version, '-') }}
make_latest: ${{ contains(steps.parse_cli_version.outputs.cli_version, '-') }}
release-install-script:
needs: release
name: Release Install Script
runs-on: warp-ubuntu-latest-x64-2x
steps:
- uses: actions/checkout@v4
with:
ref: "${{ github.ref_name }}"
- name: Push to R2 Bucket
uses: cloudflare/wrangler-action@v3
with:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
apiToken: ${{ secrets.CLOUDFLARE_TOKEN }}
wranglerVersion: "3.83.0"
preCommands: |
cat install.sh
command: |
r2 object put install/hyp.sh -f install.sh --content-type text/x-sh

0 comments on commit d8af8a5

Please sign in to comment.