diff --git a/.github/workflows/release-canary.yml b/.github/workflows/release-canary.yml index 9e0108b7..be2002ba 100644 --- a/.github/workflows/release-canary.yml +++ b/.github/workflows/release-canary.yml @@ -82,14 +82,19 @@ jobs: fi fi - - name: Install CLI from GitHub Release - run: ./install.sh - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OPENSHELL_VERSION: ${{ steps.release.outputs.tag }} + - name: Install CLI from published install script + run: | + set -euo pipefail + export OPENSHELL_VERSION="${{ steps.release.outputs.tag }}" + export OPENSHELL_INSTALL_DIR="${{ runner.temp }}/openshell-bin" + curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh + echo "$OPENSHELL_INSTALL_DIR" >> "$GITHUB_PATH" - name: Verify CLI installation - run: openshell --version + run: | + set -euo pipefail + command -v openshell + openshell --version - name: Resolve gateway host run: | diff --git a/.github/workflows/release-tag.yml b/.github/workflows/release-tag.yml index e36de607..c0bd5deb 100644 --- a/.github/workflows/release-tag.yml +++ b/.github/workflows/release-tag.yml @@ -364,37 +364,10 @@ jobs: ### Quick install - Requires the [GitHub CLI (`gh`)](https://cli.github.com) to be installed and authenticated. - - ```bash - sh -c 'ARCH=$(uname -m); OS=$(uname -s); \ - case "${OS}-${ARCH}" in \ - Linux-x86_64) ASSET="openshell-x86_64-unknown-linux-musl.tar.gz" ;; \ - Linux-aarch64) ASSET="openshell-aarch64-unknown-linux-musl.tar.gz" ;; \ - Darwin-arm64) ASSET="openshell-aarch64-apple-darwin.tar.gz" ;; \ - *) echo "Unsupported platform: ${OS}-${ARCH}" >&2; exit 1 ;; \ - esac; \ - gh release download ${{ env.RELEASE_TAG }} --repo NVIDIA/OpenShell --pattern "${ASSET}" -O - \ - | tar xz \ - && sudo install -m 755 openshell /usr/local/bin/openshell' - ``` - - ### Docker images - ```bash - docker pull ghcr.io/nvidia/openshell/gateway:${{ needs.compute-versions.outputs.semver }} - docker pull ghcr.io/nvidia/openshell/cluster:${{ needs.compute-versions.outputs.semver }} + curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | OPENSHELL_VERSION=${{ env.RELEASE_TAG }} sh ``` - ### Assets - - | File | Platform | - |------|----------| - | `openshell-x86_64-unknown-linux-musl.tar.gz` | Linux x86_64 | - | `openshell-aarch64-unknown-linux-musl.tar.gz` | Linux aarch64 / ARM64 | - | `openshell-aarch64-apple-darwin.tar.gz` | macOS Apple Silicon | - | `openshell-*.whl` | Python wheels | - | `openshell-checksums-sha256.txt` | SHA256 checksums for all archives | files: | release/openshell-x86_64-unknown-linux-musl.tar.gz release/openshell-aarch64-unknown-linux-musl.tar.gz