Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down