Skip to content

Commit a3f9058

Browse files
committed
ci: install nfpm via direct binary download instead of apt
Replace the PPA-based apt-get install with a direct binary download from GitHub Releases. Resolves the latest version automatically, avoids apt-get update overhead, and removes the hardcoded PPA config.
1 parent 8656405 commit a3f9058

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,8 @@ jobs:
8282
8383
- name: Install nFPM
8484
run: |
85-
echo 'deb [trusted=yes] https://repo.goreleaser.com/apt/ /' \
86-
| sudo tee /etc/apt/sources.list.d/goreleaser.list
87-
sudo apt-get update
88-
sudo apt-get install -y nfpm
85+
NFPM_VERSION=$(curl -sI https://github.com/goreleaser/nfpm/releases/latest | grep -i location | sed 's|.*/v||;s/\r//')
86+
curl -sL "https://github.com/goreleaser/nfpm/releases/download/v${NFPM_VERSION}/nfpm_${NFPM_VERSION}_Linux_x86_64.tar.gz" | sudo tar -xz -C /usr/local/bin nfpm
8987
9088
- name: Build deb
9189
run: |

0 commit comments

Comments
 (0)