A GitHub Action to install and set up RSCLI, a command-line tool for interacting with Reysys services.
- Installs RSCLI with a specified version or latest
- Optionally sets up Go environment
- Outputs the installed RSCLI version
- Cross-platform support (Linux, macOS, Windows)
- name: Setup RSCLI
uses: reysys-technology/setup-rscli-action@v1This will install the latest version of RSCLI with Go 1.24.
- name: Setup RSCLI
uses: reysys-technology/setup-rscli-action@v1
with:
version: '1.0.3'- name: Setup RSCLI
uses: reysys-technology/setup-rscli-action@v1
with:
version: 'latest'
go-version: '1.24'If Go is already set up in your workflow:
- name: Setup Go
uses: actions/setup-go@v6
with:
go-version: '1.24'
- name: Setup RSCLI
uses: reysys-technology/setup-rscli-action@v1
with:
skip-go-install: 'true'- name: Setup RSCLI
id: setup-rscli
uses: reysys-technology/setup-rscli-action@v1
- name: Display RSCLI Version
run: echo "Installed RSCLI version: ${{ steps.setup-rscli.outputs.rscli-version }}"| Input | Description | Required | Default |
|---|---|---|---|
version |
Version of RSCLI to install | No | latest |
skip-go-install |
Skip Go installation (set to true if Go is already set up) |
No | false |
go-version |
Go version to install (ignored if skip-go-install is true) |
No | 1.24 |
| Output | Description |
|---|---|
rscli-version |
The installed version of RSCLI |
name: Deploy with RSCLI
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup RSCLI
id: setup-rscli
uses: reysys-technology/setup-rscli-action@v1
with:
version: 'latest'
- name: Verify Installation
run: rscli --version
- name: Deploy Application
run: rscli deploy
env:
RS_SECRET_ID: ${{ secrets.RS_SECRET_ID }}
RS_SECRET: ${{ secrets.RS_SECRET }}
RS_BASE_URL: ${{ secrets.RS_BASE_URL }}- GitHub Actions runner (Linux, macOS, or Windows)
- Go 1.24 or higher (installed automatically unless
skip-go-installistrue)
For issues and questions:
- RSCLI Issues: github.com/reysys-technology/rscli/issues
- Action Issues: github.com/reysys-technology/setup-rscli-action/issues
Contributions are welcome! Please feel free to submit a Pull Request.