Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,20 @@ jobs:
args: release --clean --verbose -f goreleaser.yaml ${{ env.flags }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-
name: Install binst (binstaller)
run: |
go install github.com/binary-install/binstaller/cmd/binst@latest
-
name: Embed checksums for generated release assets
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
binst embed-checksums --config binstaller.yml --tag "${GITHUB_REF##*/}"
-
name: Generate installer script
run: |
binst gen --config binstaller.yml --output dist/install-pipeleak.sh
-
name: Upload assets
uses: actions/upload-artifact@v4
Expand Down
21 changes: 21 additions & 0 deletions binstaller.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/binary-install/binstaller/main/schema/InstallSpec.json
schema: v1
name: pipeleak
asset:
template: ${NAME}_${VERSION}_${OS}_${ARCH}${EXT}
default_extension: .tar.gz
naming_convention:
os: lowercase
arch: lowercase
checksums:
algorithm: sha256
template: ${NAME}_${VERSION}_checksums.txt
supported_platforms:
- os: linux
arch: amd64
- os: linux
arch: arm64
- os: windows
arch: amd64
- os: windows
arch: arm64
Loading