paperless-gpt/.github/workflows/goreleaser.yml
2025-02-10 13:08:49 +01:00

47 lines
978 B
YAML

name: goreleaser
on:
push:
# run only against tags
tags:
- '*'
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '>=1.22.0'
cache: true
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc musl-dev mupdf mupdf-dev
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Optional: Upload artifacts
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binaries
path: dist/*