Skip to content

Commit a938793

Browse files
authored
feat: manually commit chocolatey bucket (#3)
2 parents 08c5c06 + 2d19bbb commit a938793

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
path: app/build/prepared-release-zips/spotless*.zip*
130130
retention-days: 3
131131
if-no-files-found: "error"
132-
createChocoRelase:
132+
createChocoRelease:
133133
needs: createRelease
134134
name: "Publish chocolatey package"
135135
runs-on: windows-latest
@@ -179,3 +179,31 @@ jobs:
179179
out/jreleaser/trace.log
180180
out/jreleaser/output.properties
181181
out/jreleaser/package/spotless-cli/**
182+
publishChocoSource:
183+
needs: createChocoRelease
184+
name: "Publish chocolatey source"
185+
runs-on: ubuntu-latest"
186+
steps:
187+
- name: "Checkout"
188+
uses: actions/checkout@v4
189+
with:
190+
repository: "diffplug/chocolatey-bucket"
191+
ref: "main"
192+
token: "${{ secrets.BREW_CHOCO_CLI_GH_TOKEN }}"
193+
- name: "Download chocolatey package source"
194+
uses: "actions/download-artifact@v4"
195+
with:
196+
name: jreleaser-release-windows
197+
path: build/jreleaser-windows
198+
- name: "Update chocolatey package source"
199+
run: |
200+
cp -r build/jreleaser-windows/package/spotless-cli/chocolatey .
201+
rm spotless-cli/*.nupkg
202+
rm -r build/
203+
- name: "Commit and push changes"
204+
uses: stefanzweifel/git-auto-commit-action@v5
205+
with:
206+
commit_message: "spotless-cli v${{ needs.createRelease.outputs.RELEASE_VERSION }}"
207+
tagging_message: "v${{ needs.createRelease.outputs.RELEASE_VERSION }}"
208+
skip_fetch: true
209+
skip_checkout: true

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- Commit, tag and push the choco source files to the chocolatey-bucket repository during the release process
13+
1014
## [0.1.1] - 2025-06-02
1115

1216
### Changed

0 commit comments

Comments
 (0)