Skip to content

Commit 1be2136

Browse files
committed
Install asc from GitHub release in CI
1 parent c275051 commit 1be2136

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

.github/workflows/foundation-lab-testflight.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,23 @@ jobs:
4141
xcode-version: latest-stable
4242

4343
- name: Install asc
44+
env:
45+
GH_TOKEN: ${{ github.token }}
4446
run: |
45-
HOMEBREW_NO_AUTO_UPDATE=1 brew install asc
46-
if ! asc builds next-build-number --help >/dev/null 2>&1; then
47-
GOBIN="$RUNNER_TEMP/bin"
48-
mkdir -p "$GOBIN"
49-
export PATH="$GOBIN:$PATH"
50-
echo "$GOBIN" >> "$GITHUB_PATH"
51-
GOBIN="$GOBIN" go install github.com/rudrankriyam/App-Store-Connect-CLI@latest
52-
fi
47+
ASC_VERSION="$(gh release view \
48+
--repo rudrankriyam/App-Store-Connect-CLI \
49+
--json tagName \
50+
--jq .tagName)"
51+
ASC_ASSET="asc_${ASC_VERSION}_macOS_arm64"
52+
53+
gh release download "$ASC_VERSION" \
54+
--repo rudrankriyam/App-Store-Connect-CLI \
55+
--pattern "$ASC_ASSET" \
56+
--dir "$RUNNER_TEMP"
57+
58+
install -m 0755 "$RUNNER_TEMP/$ASC_ASSET" "$RUNNER_TEMP/asc"
59+
export PATH="$RUNNER_TEMP:$PATH"
60+
echo "$RUNNER_TEMP" >> "$GITHUB_PATH"
5361
asc --version
5462
asc builds next-build-number --help >/dev/null
5563

0 commit comments

Comments
 (0)