Skip to content

Commit cd986b3

Browse files
committed
docs(): Add GitHub action link for Oasis CLI
1 parent 28cfc20 commit cd986b3

2 files changed

Lines changed: 40 additions & 1 deletion

File tree

docs/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,6 @@ It boasts a number of handy features:
4545
calls
4646
- debugging tools for deployed Wasm contracts
4747
- inspection of blocks, transactions, results and events
48+
- install via
49+
[GitHub Action](https://github.com/oasisprotocol/setup-cli-action)
4850

docs/setup.mdx

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import TabItem from '@theme/TabItem';
1010
## Download and Run
1111

1212
The Oasis team provides CLI binaries for Linux,
13-
macOS and Windows operating systems.
13+
macOS and Windows operating systems, as well as
14+
a GitHub Action for CI/CD installs.
1415
If you want to run it on another platform,
1516
you can [build the CLI from source][cli-source].
1617

@@ -140,6 +141,42 @@ follow the instructions for **your platform** below:
140141
oasis --version
141142
```
142143
</TabItem>
144+
145+
<TabItem value="GitHub Action" label="gh-action">
146+
### setup-cli-action
147+
148+
To use Oasis CLI in GitHub CI/CD workflows, we recommend using our [setup-cli-action](https://github.com/oasisprotocol/setup-cli-action).
149+
150+
#### Setup
151+
152+
Simply add a Setup Oasis CLI step to your workflow:
153+
154+
```yaml
155+
steps:
156+
- name: Setup Oasis CLI
157+
uses: oasisprotocol/setup-cli-action
158+
```
159+
160+
#### Verify
161+
162+
```yaml
163+
- name: Check Oasis CLI version
164+
run: oasis --version
165+
```
166+
167+
#### Configuration
168+
169+
Optionally you can use the version parameter to install a different version of the CLI.
170+
171+
```yaml
172+
steps:
173+
- name: Setup Oasis CLI
174+
uses: oasisprotocol/setup-cli-action
175+
with:
176+
version: '0.14.3'
177+
```
178+
</TabItem>
179+
143180
</Tabs>
144181
145182
## Update

0 commit comments

Comments
 (0)