Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 3, 2025

This PR fixes several critical issues in the GitHub Actions release pipeline that were preventing successful builds and releases.

Issues Fixed

Outdated GitHub Actions

The workflows were using deprecated GitHub Actions versions:

  • actions/checkout@v2actions/checkout@v4
  • actions/setup-go@v2actions/setup-go@v5
  • goreleaser/goreleaser-action@v2goreleaser/goreleaser-action@v6

Incompatible Go Version

The workflows specified Go 1.17, but the project requires Go 1.23.0 according to go.mod:

  • Updated release workflow Go version: 1.171.23
  • Updated build workflow Go version: ^1.17^1.23

Incorrect Step Order

The build workflow had steps in the wrong order, attempting to set up Go before checking out the code:

  • Fixed by moving checkout step before Go setup step

Deprecated GoReleaser Flags

Updated the deprecated --rm-dist flag to --clean for compatibility with GoReleaser v1.0.0+.

Outdated GoReleaser Configuration

The .goreleaser.yml configuration was incompatible with modern GoReleaser versions:

  • Added version: 2 for modern GoReleaser API compatibility
  • Updated documentation URL from HTTP to HTTPS
  • Simplified checksum filename template for better compatibility

Changes Made

.github/workflows/release.yml:

  • Updated all GitHub Actions to latest stable versions
  • Changed Go version to match project requirements
  • Updated GoReleaser action and arguments

.github/workflows/build.yaml:

  • Fixed step execution order
  • Updated GitHub Actions to latest stable versions
  • Changed Go version to match project requirements

.goreleaser.yml:

  • Added modern GoReleaser API version specification
  • Updated documentation URL and configuration format
  • Ensured compatibility with GoReleaser v6 action

Testing

  • ✅ YAML syntax validation passes
  • ✅ Project builds successfully with Go 1.23+
  • ✅ Binary execution works correctly
  • ✅ All existing functionality preserved
  • ✅ GoReleaser configuration validated for modern compatibility

These changes ensure the complete release pipeline will work correctly with modern GitHub Actions, proper Go version compatibility, and updated GoReleaser configuration format.


💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.

Co-authored-by: ziflex <1607148+ziflex@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix the release pipeline in release.yml. Fix release pipeline - update GitHub Actions and Go versions Sep 3, 2025
Copilot AI requested a review from ziflex September 3, 2025 15:35
@ziflex
Copy link
Contributor

ziflex commented Sep 3, 2025

@copilot don't we need to update .goreleaser.yml as well?

Co-authored-by: ziflex <1607148+ziflex@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Sep 3, 2025

@copilot don't we need to update .goreleaser.yml as well?

You're absolutely right! I've updated .goreleaser.yml to be compatible with the modern GoReleaser version we're now using. The key changes were:

  • Added version: 2 for modern GoReleaser API compatibility
  • Updated documentation URL to HTTPS
  • Simplified checksum filename template

These updates ensure compatibility with the goreleaser/goreleaser-action@v6 we're now using in the release workflow. Changes committed in 5228345.

Copilot AI changed the title Fix release pipeline - update GitHub Actions and Go versions Fix release pipeline - update GitHub Actions, Go versions, and GoReleaser config Sep 3, 2025
@ziflex ziflex marked this pull request as ready for review September 3, 2025 15:47
@ziflex ziflex merged commit ddced0e into main Sep 3, 2025
2 checks passed
@ziflex ziflex deleted the copilot/fix-d39a9366-3b1b-4c81-9ca3-6cf56109d69e branch September 3, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants