Docker volume mounts in Gitea CI don't expose the runner workspace
correctly, leaving /build empty inside the container. Since the pgtidy
binary is statically linked Go with no shared-lib deps, rpmbuild runs
fine on ubuntu-latest with the rpm package. Drops Docker entirely from
the RPM job.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
go.mod specifies 'go 1.26' (no patch), making the download URL
go1.26.linux-amd64.tar.gz which 404s. Use actions/setup-go on the
runner and bind-mount GOROOT into the rockylinux container read-only,
removing the curl+tar download entirely.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PKGBUILD expects pgtidy_${pkgver}_linux_{amd64,arm64}.tar.gz containing
the binary and LICENSE. The release job was only uploading plain binaries
(pgtidy-linux-amd64). Now creates tarballs alongside the plain binaries,
uploads both, and updates AUR SHA256 computation to use the tarballs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Draft releases return 404 on asset downloads, which breaks the AUR
SHA256 computation in pkg-aur. Remove draft:true so assets are publicly
accessible when downstream jobs run.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
If PREV_TAG is a malformed or non-reachable tag name, git log fails
with exit 128 under set -e. Validate with git rev-parse --verify first
and fall back to a full log if it doesn't resolve.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- VSCode: switch from npm ci to pnpm (project uses pnpm-lock.yaml)
- RPM: replace docker create+cp with docker run --rm -v mount to avoid
missing /build directory in rockylinux:9
- AUR: guard PKGBUILD reads with -f check so first publish to an empty
AUR repo defaults pkgrel to 1 instead of crashing
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>