Skip to content

stacc/setup-stacc-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup-stacc-cli

Sets up the Stacc CLI for GitHub Actions runners.

About

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.

Usage

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

Inputs

The actions supports the following inputs:

  • version: The version of stacc to install, defaulting to 0.7.8

Example job

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"

License

MIT.