Skip to content

Commit 492dee0

Browse files
Merge pull request #7 from RodrigoCury/dev
creates a stk-cli-action pointing to dev environment
2 parents 3063ab8 + ccef65a commit 492dee0

File tree

4 files changed

+27
-21
lines changed

4 files changed

+27
-21
lines changed

.github/workflows/action-test-macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: Run STK CLI installation
22-
uses: stack-spot/stk-cli-action@main
22+
uses: stack-spot/stk-cli-action@dev
2323
with:
2424
client_id: ${{ secrets.CLIENT_ID }}
2525
client_key: ${{ secrets.CLIENT_KEY }}
2626
realm: ${{ secrets.REALM }}
2727

28-
- run: stk --version
28+
- run: stk-dev --version
2929

30-
- run: stk list stack
30+
- run: stk-dev list workspace
3131

3232
# - name: Setup upterm session
3333
# uses: lhotari/action-upterm@v1

.github/workflows/action-test-ubuntu.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: Run STK CLI installation
22-
uses: stack-spot/stk-cli-action@main
22+
uses: stack-spot/stk-cli-action@dev
2323
with:
2424
client_id: ${{ secrets.CLIENT_ID }}
2525
client_key: ${{ secrets.CLIENT_KEY }}
2626
realm: ${{ secrets.REALM }}
2727

28-
- run: stk --version
29-
30-
- run: stk list stack
28+
- run: stk-dev --version
29+
30+
- run: stk-dev list workspace
3131

3232
# - name: Setup upterm session
3333
# uses: lhotari/action-upterm@v1

.github/workflows/action-test-windows.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ jobs:
1919
runs-on: ${{ matrix.os }}
2020
steps:
2121
- name: Run STK CLI installation
22-
uses: stack-spot/stk-cli-action@main
22+
uses: stack-spot/stk-cli-action@dev
2323
with:
2424
client_id: ${{ secrets.CLIENT_ID }}
2525
client_key: ${{ secrets.CLIENT_KEY }}
2626
realm: ${{ secrets.REALM }}
2727

28-
- run: stk --version
28+
- run: stk-dev --version
2929
shell: bash
30-
31-
- run: stk list stack
30+
31+
- run: stk-dev list workspace
3232
shell: bash

action.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,37 @@ runs:
2020
run: echo 🤖 OS runner is $(uname)
2121
shell: bash
2222

23-
- name: Install STK CLI
23+
- name: Install STK CLI - dev
2424
run: |
2525
if [[ "$(uname)" = "Linux" ]]; then
26-
curl -fsSL https://stk.stackspot.com/install.sh | bash
27-
sudo mv /home/runner/.stk/bin/* /usr/local/bin
26+
sudo apt update && sudo apt install -y curl unzip git
27+
curl -fsSL https://stk-cli.dev.stackspot.com/install-dev.sh | bash
28+
sudo mv /home/runner/.stk-dev/bin/* /usr/local/bin
2829
elif [[ "$(uname)" = "Darwin" ]]; then
29-
curl -fsSL https://stk.stackspot.com/install.sh | bash
30-
sudo mv /Users/runner/.stk/bin/* /usr/local/bin
30+
curl -fsSL https://stk-cli.dev.stackspot.com/install-dev.sh | bash
31+
sudo mv /Users/runner/.stk-dev/bin/* /usr/local/bin
32+
mv /usr/local/bin/stk-dev /usr/local/bin/stk
3133
else
3234
git clone https://github.com/Microsoft/vcpkg.git
3335
cd vcpkg
3436
./bootstrap-vcpkg.sh
3537
./vcpkg integrate install
3638
vcpkg install curl[tool]
3739
cd $GITHUB_WORKSPACE
38-
curl https://stk.stackspot.com/installer/windows/stk.exe --output stk.exe
39-
./stk.exe upgrade
40-
mv stk.exe /bin
40+
curl https://stk-cli.dev.stackspot.com/installer/windows/stk-dev.exe --output stk-dev.exe
41+
./stk-dev.exe upgrade
42+
mv stk-dev.exe /bin
4143
fi
4244
shell: bash
45+
46+
- name: Show STK CLI version
47+
run: stk-dev --version
48+
shell: bash
4349

4450
- name: Login to StackSpot Account
45-
run: stk login --client-id=${{ inputs.client_id }} --client-key=${{ inputs.client_key }} --realm=${{ inputs.realm }}
51+
run: stk-dev login --client-id=${{ inputs.client_id }} --client-key=${{ inputs.client_key }} --realm=${{ inputs.realm }}
4652
shell: bash
4753

4854
branding:
4955
icon: 'terminal'
50-
color: 'gray-dark'
56+
color: 'gray-dark'

0 commit comments

Comments
 (0)