Sets up the Stacc CLI for GitHub Actions runners.
This action sets up the Stacc CLI, stacc
, on GitHub's hosted Actions runners.
This action can be run on ubuntu-latest
, windows-latest
, and macos-latest
GitHub Actions runners, and will install and expose a specified version of the stacc
CLI on the runner environment.
Setup the stacc
CLI:
steps:
- uses: stacc/setup-stacc-cli
A specific version of the stacc
CLI can be installed:
steps:
- uses: stacc/setup-stacc-cli
with:
version:
0.6.0
The actions supports the following inputs:
version
: The version ofstacc
to install, defaulting to0.7.8
jobs:
login:
runs-on: ubuntu-latest
env:
STACC_CLIENT_ID: ${{ secrets.MY_CLIENT_ID }}
STACC_CLIENT_SECRET: ${{ secrets.MY_CLIENT_SECRET }}
steps:
- name: Setup stacc
uses: stacc/setup-stacc-cli@v1
- name: stacc login
run: |
stacc login -u "$STACC_CLIENT_ID" -p "$STACC_CLIENT_SECRET"
- name: stacc publish
run: |
stacc publish . --version "1.2.3"
MIT.