Skip to content

Commit 6ca0254

Browse files
committed
chore(ci): draft jrelease publication
1 parent 285eef8 commit 6ca0254

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,5 @@ jobs:
9292
with:
9393
check_name: "JUnit Report"
9494
report_paths: "**/build/test-results/test/*.xml"
95+
# TODO add job to check if jrelease distribute would be working
96+
# eg using `JRELEASER_GITHUB_TOKEN=123 jreleaser -Djreleaser.project.version=0.1.0 publish --dry-run`

.github/workflows/publish.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,25 @@ jobs:
9191
uses: "actions/download-artifact@v4"
9292
with:
9393
# no name - download all artifacts
94-
path: "build/collected-binaries"
94+
path: "app/build/collected-binaries"
9595
- name: "Create release"
96-
run: "./gradlew -Prelease=true -PreleaseBinariesRootDir=build/collected-binaries changelogPush"
96+
run: "./gradlew -Prelease=true -PreleaseBinariesRootDir=app/build/collected-binaries changelogPush"
97+
- name: "Publish distributions"
98+
uses: jreleaser/release-action@v2
99+
with:
100+
setup-java: false
101+
arguments: "publish"
102+
env:
103+
JRELEASER_PROJECT_VERSION: TODO
104+
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
105+
JRELEASER_HOMEBREW_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
106+
JRELEASER_CHOCOLATEY_GITHUB_TOKEN: ${{ secrets.GH_PAT }}
107+
108+
- name: "Persist jreleaser output"
109+
if: always()
110+
uses: actions/upload-artifact@v4
111+
with:
112+
name: jreleaser-release
113+
path: |
114+
out/jreleaser/trace.log
115+
out/jreleaser/output.properties

0 commit comments

Comments
 (0)