Skip to content

fix: one more try

fix: one more try #12

Workflow file for this run

name: Go CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.3'
cache: true
- name: Run tests
run: go test -v ./...
build:
name: Build
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.3'
cache: true
- name: Build
run: go build -v -o pdf-joiner
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: pdf-joiner
path: pdf-joiner
release:
name: Release
needs: [test, build]
if: startsWith(github.ref, 'refs/tags/v')
runs-on: macos-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24.3'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}