From 58595732ec18f11e2ed35a4d4ab6002c4b9ac96d Mon Sep 17 00:00:00 2001 From: Juha Jantunen Date: Wed, 21 Feb 2024 21:02:56 +0200 Subject: [PATCH] feat: use nfpm --- .github/workflows/ci.yml | 8 -------- .goreleaser.yaml | 19 +++++++++++++++++-- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6dcc9de..9e7b47a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,14 +45,6 @@ jobs: run: | sudo apt-get update sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev - - name: Install Task - uses: arduino/setup-task@v2 - with: - version: 3.x - repo-token: ${{ secrets.GITHUB_TOKEN }} - - name: Package - run: | - task package:debian-amd64 - uses: go-semantic-release/action@v1 with: hooks: goreleaser diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 00d693b..9720dda 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,6 +1,6 @@ builds: - - targets: - - linux_amd64 + - goos: + - linux main: ./cmd/ flags: - -trimpath @@ -10,3 +10,18 @@ builds: - -X main.version={{.Version}} - -X main.commitSHA={{.FullCommit}} - -X main.buildDate={{.Date}} + +nfpms: + - package_name: linkquisition + homepage: https://www.strobotti.com + maintainer: Juha Jantunen + description: |- + Linkquisition is a browser-picker tool for opening links in a specific browser. + formats: + - deb + - rpm + bindir: /usr/bin + priority: optional + +sboms: + - artifacts: archive