Skip to content

Commit 5d47282

Browse files
authored
fix: install nfpm straight from GitHub (#5214)
* fix: install nfpm straight from GitHub install.goreleaser.com appears to no longer be available. * Add -f to curl commands This might have made it so we got the right error rather than erroring on the envsubst step.
1 parent d3f58f9 commit 5d47282

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/ci.yaml

+7-4
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ jobs:
265265
266266
- name: Install nfpm and envsubst
267267
run: |
268-
curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh -s -- -b ~/.local/bin v2.3.1
269-
curl -L https://github.com/a8m/envsubst/releases/download/v1.1.0/envsubst-`uname -s`-`uname -m` -o envsubst
268+
mkdir -p ~/.local/bin
269+
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
270+
curl -sSfL https://github.com/a8m/envsubst/releases/download/v1.1.0/envsubst-`uname -s`-`uname -m` -o envsubst
270271
chmod +x envsubst
271272
mv envsubst ~/.local/bin
272273
echo "$HOME/.local/bin" >> $GITHUB_PATH
@@ -352,7 +353,8 @@ jobs:
352353

353354
- name: Install nfpm
354355
run: |
355-
curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh -s -- -b ~/.local/bin v2.3.1
356+
mkdir -p ~/.local/bin
357+
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
356358
echo "$HOME/.local/bin" >> $GITHUB_PATH
357359
358360
- name: Install cross-compiler
@@ -404,7 +406,8 @@ jobs:
404406

405407
- name: Install nfpm
406408
run: |
407-
curl -sfL https://install.goreleaser.com/github.com/goreleaser/nfpm.sh | sh -s -- -b ~/.local/bin v2.3.1
409+
mkdir -p ~/.local/bin
410+
curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
408411
echo "$HOME/.local/bin" >> $GITHUB_PATH
409412
410413
- name: Download npm package

0 commit comments

Comments
 (0)