For tags v0.1.0 and v0.1.1, GoReleaser is not run in Actions (see .github/workflows/release.yml).
Build artifacts locally under release-artifacts/<version>/ (gitignored), then attach them to a GitHub Release.
From the repository root, generate that directory (matching .goreleaser.yml naming) with:
./bin/build_release_artifacts.shUse --version to build artifacts for an older release without editing
version/version.go (for example 0.1.0 while the file says 0.1.1):
./bin/build_release_artifacts.sh --version 0.1.0Requires go, zip, and sha256sum (or shasum on macOS). When not using --version, re-run after changing
version/version.go so embedded semver matches the release.
With GitHub CLI installed and authenticated (gh auth login), from the repository root:
./bin/publish_github_release_artifacts.sh --version 0.1.0This runs ./bin/build_release_artifacts.sh --version 0.1.0, then gh release upload to attach (or replace) the three
files on the existing GitHub Release for tag v0.1.0. Use --no-build if you already built into
release-artifacts/0.1.0/.
First-time release (no GitHub Release page yet, but the git tag v0.1.0 exists on the remote):
./bin/publish_github_release_artifacts.sh --version 0.1.0 --createThis uses gh release create with CHANGELOG.md as release notes and uploads the same artifacts.
If the release already exists, omit --create and use the default upload command above.
Push the tag before publishing: git push origin v0.1.0.
Each release-artifacts/vX.Y.Z/ directory should contain:
packer-plugin-sylve_vX.Y.Z_x5.0_darwin_arm64.zippacker-plugin-sylve_vX.Y.Z_x5.0_freebsd_amd64.zippacker-plugin-sylve_vX.Y.Z_SHA256SUMS
Rebuild after changing version/version.go so embedded semver matches the tag.
Prefer bin/publish_github_release_artifacts.sh (see
Automated upload). Equivalent manual invocations:
gh release create v0.1.0 --repo xoro/packer-plugin-sylve --title "v0.1.0" --notes-file CHANGELOG.md \
release-artifacts/v0.1.0/packer-plugin-sylve_v0.1.0_x5.0_darwin_arm64.zip \
release-artifacts/v0.1.0/packer-plugin-sylve_v0.1.0_x5.0_freebsd_amd64.zip \
release-artifacts/v0.1.0/packer-plugin-sylve_v0.1.0_SHA256SUMSRepeat for v0.1.1 with the v0.1.1 paths and tag.
If gh fails with a permissions or scope error, create the release in the UI and upload the same files.
Pushing a tag other than v0.1.0 / v0.1.1 triggers GoReleaser in Actions; manual zips are optional.