Skip to content

chore(deps): update deps (qBit v5 compatibility) and Go version #127

chore(deps): update deps (qBit v5 compatibility) and Go version

chore(deps): update deps (qBit v5 compatibility) and Go version #127

Workflow file for this run

name: goreleaser
on:
pull_request:
push:
branches:
- "master"
- "develop"
tags:
- 'v*'
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
cache: true
- name: Test
run: go test -v ./...
build:
name: Build Go binaries
needs: [ test ]
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
cache: true
- name: Run GoReleaser build
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean --skip=validate --skip=publish --parallelism 5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload assets
uses: actions/upload-artifact@v4
with:
name: qbittorrent-cli
path: |
dist/*.tar.gz
dist/*.zip
release:
name: Build and publish binaries
needs: [ test ]
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23
cache: true
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}