detached fe83be2

docs: update GitHub Actions guide to use setup-gordon action

commit
fe83be2fa86ea5f4b6167e955636e833f7842496
author
brice · · 2026-03-19 04:27 UTC
parent
5b7cfea
signature
unsigned
1 file · +25 -22
M docs/deployment/github-actions.md +25 -22
@@ -34,15 +34,15 @@ In your repository: Settings → Secrets → Actions → New repository secret
3434 | `GORDON_TOKEN` | The generated token |
3535 | `GORDON_REMOTE` | `https://gordon.example.com` |
3636
37-### 3. Install Gordon Binary
37+### 3. Setup Gordon CLI
3838
39-Add this step to your workflow to download the Gordon binary:
39+Add this step to your workflow to install the Gordon binary:
4040
4141 ```yaml
42-- name: Install Gordon
43- run: |
44- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
45- chmod +x /usr/local/bin/gordon
42+- name: Setup Gordon
43+ uses: bnema/gordon/.github/actions/setup-gordon@main
44+ # with:
45+ # version: latest # default, or pin to e.g. v2.0.0
4646 ```
4747
4848 ### 4. Workflow Examples
@@ -64,10 +64,8 @@ jobs:
6464 steps:
6565 - uses: actions/checkout@v4
6666
67- - name: Install Gordon
68- run: |
69- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
70- chmod +x /usr/local/bin/gordon
67+ - name: Setup Gordon
68+ uses: bnema/gordon/.github/actions/setup-gordon@main
7169
7270 - name: Build and Deploy
7371 env:
@@ -98,10 +96,8 @@ jobs:
9896 with:
9997 fetch-depth: 0
10098
101- - name: Install Gordon
102- run: |
103- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
104- chmod +x /usr/local/bin/gordon
99+ - name: Setup Gordon
100+ uses: bnema/gordon/.github/actions/setup-gordon@main
105101
106102 - name: Build and Deploy
107103 env:
@@ -136,10 +132,8 @@ jobs:
136132 ref: ${{ github.event.inputs.tag || github.ref }}
137133 fetch-depth: 0
138134
139- - name: Install Gordon
140- run: |
141- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
142- chmod +x /usr/local/bin/gordon
135+ - name: Setup Gordon
136+ uses: bnema/gordon/.github/actions/setup-gordon@main
143137
144138 - name: Build and Deploy
145139 env:
@@ -168,10 +162,8 @@ jobs:
168162 steps:
169163 - uses: actions/checkout@v4
170164
171- - name: Install Gordon
172- run: |
173- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
174- chmod +x /usr/local/bin/gordon
165+ - name: Setup Gordon
166+ uses: bnema/gordon/.github/actions/setup-gordon@main
175167
176168 - name: Deploy API
177169 env:
@@ -211,6 +203,17 @@ Pass build arguments to the Docker build:
211203 --no-confirm
212204 ```
213205
206+### setup-gordon Action Reference
207+
208+| Input | Required | Default | Description |
209+|-------|----------|---------|-------------|
210+| `version` | No | `latest` | Gordon version to install (`v2.0.0` or `latest`) |
211+
212+| Output | Description |
213+|--------|-------------|
214+| `version` | The version actually installed |
215+| `path` | Path to the installed binary |
216+
214217 ## Alternative: Docker-based Workflow
215218
216219 For environments where installing the Gordon binary is not desired, use Docker directly to build and push to the Gordon registry. Gordon auto-deploys when it receives the image — no explicit deploy step is needed.
@@ -34,15 +34,15 @@ In your repository: Settings → Secrets → Actions → New repository secret
34 | `GORDON_TOKEN` | The generated token |34 | `GORDON_TOKEN` | The generated token |
35 | `GORDON_REMOTE` | `https://gordon.example.com` |35 | `GORDON_REMOTE` | `https://gordon.example.com` |
36 36
37-### 3. Install Gordon Binary37+### 3. Setup Gordon CLI
38 38
39-Add this step to your workflow to download the Gordon binary:39+Add this step to your workflow to install the Gordon binary:
40 40
41 ```yaml41 ```yaml
42-- name: Install Gordon42+- name: Setup Gordon
43- run: |43+ uses: bnema/gordon/.github/actions/setup-gordon@main
44- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon44+ # with:
45- chmod +x /usr/local/bin/gordon45+ # version: latest # default, or pin to e.g. v2.0.0
46 ```46 ```
47 47
48 ### 4. Workflow Examples48 ### 4. Workflow Examples
@@ -64,10 +64,8 @@ jobs:
64 steps:64 steps:
65 - uses: actions/checkout@v465 - uses: actions/checkout@v4
66 66
67- - name: Install Gordon67+ - name: Setup Gordon
68- run: |68+ uses: bnema/gordon/.github/actions/setup-gordon@main
69- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
70- chmod +x /usr/local/bin/gordon
71 69
72 - name: Build and Deploy70 - name: Build and Deploy
73 env:71 env:
@@ -98,10 +96,8 @@ jobs:
98 with:96 with:
99 fetch-depth: 097 fetch-depth: 0
100 98
101- - name: Install Gordon99+ - name: Setup Gordon
102- run: |100+ uses: bnema/gordon/.github/actions/setup-gordon@main
103- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
104- chmod +x /usr/local/bin/gordon
105 101
106 - name: Build and Deploy102 - name: Build and Deploy
107 env:103 env:
@@ -136,10 +132,8 @@ jobs:
136 ref: ${{ github.event.inputs.tag || github.ref }}132 ref: ${{ github.event.inputs.tag || github.ref }}
137 fetch-depth: 0133 fetch-depth: 0
138 134
139- - name: Install Gordon135+ - name: Setup Gordon
140- run: |136+ uses: bnema/gordon/.github/actions/setup-gordon@main
141- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
142- chmod +x /usr/local/bin/gordon
143 137
144 - name: Build and Deploy138 - name: Build and Deploy
145 env:139 env:
@@ -168,10 +162,8 @@ jobs:
168 steps:162 steps:
169 - uses: actions/checkout@v4163 - uses: actions/checkout@v4
170 164
171- - name: Install Gordon165+ - name: Setup Gordon
172- run: |166+ uses: bnema/gordon/.github/actions/setup-gordon@main
173- curl -fsSL https://github.com/bnema/gordon/releases/latest/download/gordon_linux_amd64 -o /usr/local/bin/gordon
174- chmod +x /usr/local/bin/gordon
175 167
176 - name: Deploy API168 - name: Deploy API
177 env:169 env:
@@ -211,6 +203,17 @@ Pass build arguments to the Docker build:
211 --no-confirm203 --no-confirm
212 ```204 ```
213 205
206+### setup-gordon Action Reference
207+
208+| Input | Required | Default | Description |
209+|-------|----------|---------|-------------|
210+| `version` | No | `latest` | Gordon version to install (`v2.0.0` or `latest`) |
211+
212+| Output | Description |
213+|--------|-------------|
214+| `version` | The version actually installed |
215+| `path` | Path to the installed binary |
216+
214 ## Alternative: Docker-based Workflow217 ## Alternative: Docker-based Workflow
215 218
216 For environments where installing the Gordon binary is not desired, use Docker directly to build and push to the Gordon registry. Gordon auto-deploys when it receives the image — no explicit deploy step is needed.219 For environments where installing the Gordon binary is not desired, use Docker directly to build and push to the Gordon registry. Gordon auto-deploys when it receives the image — no explicit deploy step is needed.

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close