diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 925870e..8369b4c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -43,9 +43,11 @@ jobs: name: Build and Deploy Docs needs: changes if: | - github.event_name == 'push' || - github.event_name == 'workflow_dispatch' || - needs.changes.outputs.should_run == 'true' + !cancelled() && ( + github.event_name == 'push' || + github.event_name == 'workflow_dispatch' || + needs.changes.outputs.should_run == 'true' + ) runs-on: ubuntu-latest steps: diff --git a/.github/workflows/gateway.yml b/.github/workflows/gateway.yml index fc1c5e8..0c92c6d 100644 --- a/.github/workflows/gateway.yml +++ b/.github/workflows/gateway.yml @@ -30,8 +30,10 @@ jobs: name: Vet · Test · Build needs: changes if: | - github.event_name == 'push' || - needs.changes.outputs.should_run == 'true' + !cancelled() && ( + github.event_name == 'push' || + needs.changes.outputs.should_run == 'true' + ) runs-on: ubuntu-latest defaults: run: diff --git a/.github/workflows/sdk.yml b/.github/workflows/sdk.yml index 9f17ecd..465363b 100644 --- a/.github/workflows/sdk.yml +++ b/.github/workflows/sdk.yml @@ -40,8 +40,10 @@ jobs: name: Install · Build · Test needs: changes if: | - github.event_name == 'push' || - needs.changes.outputs.should_run == 'true' + !cancelled() && ( + github.event_name == 'push' || + needs.changes.outputs.should_run == 'true' + ) runs-on: ubuntu-latest steps: diff --git a/docs/src/content/docs/guides/installation.mdx b/docs/src/content/docs/guides/installation.mdx index 0aa2200..8ee1f44 100644 --- a/docs/src/content/docs/guides/installation.mdx +++ b/docs/src/content/docs/guides/installation.mdx @@ -129,16 +129,28 @@ COPY --from=ghcr.io/ruachtech/rep/gateway:latest /usr/local/bin/rep-gateway /usr Download from [GitHub Releases](https://github.com/ruachtech/rep/releases) for your platform: +Archives are published on the version tag — `v0.1.7`, not `gateway/v0.1.7`: + ```bash # Linux amd64 -curl -fsSL https://github.com/RuachTech/rep/releases/download/gateway/v0.1.2/rep-gateway_0.1.2_linux_amd64.tar.gz | tar -xz +curl -fsSL https://github.com/RuachTech/rep/releases/download/v0.1.7/rep-gateway_0.1.7_linux_amd64.tar.gz | tar -xz mv rep-gateway /usr/local/bin/ # macOS arm64 -curl -fsSL https://github.com/RuachTech/rep/releases/download/gateway/v0.1.2/rep-gateway_0.1.2_darwin_arm64.tar.gz | tar -xz +curl -fsSL https://github.com/RuachTech/rep/releases/download/v0.1.7/rep-gateway_0.1.7_darwin_arm64.tar.gz | tar -xz mv rep-gateway /usr/local/bin/ ``` +To always fetch the newest release instead of a pinned version: + +```bash +VERSION=$(curl -fsSL https://api.github.com/repos/RuachTech/rep/releases/latest | grep -m1 '"tag_name"' | cut -d'"' -f4) +curl -fsSL "https://github.com/RuachTech/rep/releases/download/${VERSION}/rep-gateway_${VERSION#v}_linux_amd64.tar.gz" | tar -xz +mv rep-gateway /usr/local/bin/ +``` + +Each release also ships a `checksums.txt` for verification. + ### Build from source Requires Go >= 1.24.5: