feat: create self-contained CI workflows - #1
Conversation
- pull-request.yaml: lint (golangci-lint), test (go test), build (goreleaser snapshot), and auto-labels on PRs. All jobs use paths-filter to skip when no Go files changed. - master.yml: release-drafter to prepare draft releases on push to master. - tag.yml: goreleaser release on tag push + brew registry update. - goreleaser: explicit build targets (linux, darwin, windows/386), CGO_ENABLED=0, tar.gz archives, sha256 checksums. Replaces previous workflows that relied on composite actions from tchoupinax/repo-config with inline steps. Co-Authored-By: corentin.filoche <corentinfiloche@hotmail.fr>
Original prompt from corentin.filoche
|
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
| uses: actions/create-github-app-token@v3 | ||
| id: app-token | ||
| with: | ||
| app-id: ${{ secrets.DEPLOY_APP_ID }} |
There was a problem hiding this comment.
use GitHub token from the CI
There was a problem hiding this comment.
Done — switched to ${{ github.token }} and added the required permissions block (contents: write, pull-requests: read).
Co-Authored-By: corentin.filoche <corentinfiloche@hotmail.fr>
|
remove tag pipeline |
- Remove tag.yml (no tag-based release) - PR workflow: only goreleaser snapshot build - Master workflow: goreleaser release with GITHUB_TOKEN Co-Authored-By: corentin.filoche <corentinfiloche@hotmail.fr>
|
Done — simplified per your feedback:
|
Summary
Simplified CI: build check on PRs, goreleaser release on push to master.
Workflows:
pull-request.yamlmaster.ymlmastergoreleaser release --clean— creates GitHub release with assets.goreleaser.yml:linux/{amd64,arm64,386},darwin/{amd64,arm64},windows/386CGO_ENABLED=0,tar.gzarchives, sha256 checksumsNo tag-based pipeline — release happens directly on merge to master.
Link to Devin session: https://app.devin.ai/sessions/8976a83c03e549d0a5eda0bdbab4e551
Requested by: @Tchoupinax