-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
27 lines (25 loc) · 1.11 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Setup Shorebird
description: Install the Shorebird CLI
branding:
icon: check-circle
color: yellow
runs:
using: composite
steps:
- name: 🐦 Install Shorebird (macOS / Linux)
if: runner.os != 'Windows'
run: |
curl --proto '=https' --tlsv1.2 https://raw.githubusercontent.com/shorebirdtech/install/main/install.sh -sSf | bash -s -- --force
install_path=$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.shorebird" || printf %s "${XDG_CONFIG_HOME}/shorebird")
echo $install_path/bin >> $GITHUB_PATH
echo "added $install_path/bin to GITHUB_PATH"
shell: bash
- name: 🐦 Install Shorebird (Windows)
if: runner.os == 'Windows'
run: |
Set-ExecutionPolicy RemoteSigned -scope CurrentUser # Needed to execute remote scripts
iwr -UseBasicParsing 'https://raw.githubusercontent.com/shorebirdtech/install/main/install.ps1'|iex
$installDirectory = [IO.Path]::Combine($home, ".shorebird")
Add-Content $env:GITHUB_PATH "$installDirectory\bin"
Write-Output "added $installDirectory\bin to GITHUB_PATH"
shell: pwsh