From e5e1c3b2a570e770bd31fbbd123649ce28d95d37 Mon Sep 17 00:00:00 2001 From: Simon Gamma Date: Tue, 3 Jun 2025 06:44:29 +0200 Subject: [PATCH 1/2] chore(ci): manually publish chocolatey source as the jreleaser publish action somehow skips this step, we manually perform it after the fact. Reason for why this is skipped on jreleaser workflow is unknown, but it most probably is due to a configuration mistake on my end. --- .github/workflows/publish.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0089dc..707403f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -129,7 +129,7 @@ jobs: path: app/build/prepared-release-zips/spotless*.zip* retention-days: 3 if-no-files-found: "error" - createChocoRelase: + createChocoRelease: needs: createRelease name: "Publish chocolatey package" runs-on: windows-latest @@ -179,3 +179,31 @@ jobs: out/jreleaser/trace.log out/jreleaser/output.properties out/jreleaser/package/spotless-cli/** + publishChocoSource: + needs: createChocoRelease + name: "Publish chocolatey source" + runs-on: ubuntu-latest" + steps: + - name: "Checkout" + uses: actions/checkout@v4 + with: + repository: "diffplug/chocolatey-bucket" + ref: "main" + token: "${{ secrets.BREW_CHOCO_CLI_GH_TOKEN }}" + - name: "Download chocolatey package source" + uses: "actions/download-artifact@v4" + with: + name: jreleaser-release-windows + path: build/jreleaser-windows + - name: "Update chocolatey package source" + run: | + cp -r build/jreleaser-windows/package/spotless-cli/chocolatey . + rm spotless-cli/*.nupkg + rm -r build/ + - name: "Commit and push changes" + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "spotless-cli v${{ needs.createRelease.outputs.RELEASE_VERSION }}" + tagging_message: "v${{ needs.createRelease.outputs.RELEASE_VERSION }}" + skip_fetch: true + skip_checkout: true From 2d19bbbed3cfb03d6854ddc5558900f67b9e3729 Mon Sep 17 00:00:00 2001 From: Simon Gamma Date: Wed, 4 Jun 2025 22:03:50 +0200 Subject: [PATCH 2/2] fixup! chore(ci): manually publish chocolatey source --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2613a2..075630c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Commit, tag and push the choco source files to the chocolatey-bucket repository during the release process + ## [0.1.1] - 2025-06-02 ### Changed