Skip to content

Commit 9f9c6a5

Browse files
committed
initial commit for cloudsmith release
1 parent 4e273f6 commit 9f9c6a5

2 files changed

Lines changed: 71 additions & 0 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: cloudsmith_release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
parent_version:
7+
description: 'New killbill-oss-parent version'
8+
required: false
9+
default: ''
10+
perform_version:
11+
description: 'tag to (re-)perform (in case of release:perform failure)'
12+
required: false
13+
default: ''
14+
15+
jobs:
16+
release:
17+
# maint-for-0-24-x: gh-actions-shared's own maint-for-0-24-x branch still ships the old
18+
# Sonatype-based pipeline (MAVEN_USERNAME/MAVEN_PASSWORD secrets) and has no release.yml at
19+
# all (confirmed 404 on that ref), so it cannot be used for a Cloudsmith-based release. Use
20+
# @main instead, which has the Cloudsmith-aware reusable release workflow.
21+
uses: killbill/gh-actions-shared/.github/workflows/release.yml@main
22+
with:
23+
parent_version: ${{ github.event.inputs.parent_version }}
24+
perform_version: ${{ github.event.inputs.perform_version }}
25+
java_version: '11'
26+
java_distribution: 'temurin'
27+
# maint-for-0-24-x: killbill-oss-parent's maint-for-0-24-x lineage (tracked by this
28+
# plugin's 0.146.63 parent) only ships a "sonatype-oss-release" profile that targets
29+
# Sonatype Central, incompatible with our Cloudsmith distributionManagement override in
30+
# pom.xml. "oss-release" is a local, temporary profile defined in this repo's pom.xml
31+
# (modeled after killbill-oss-parent@master's Cloudsmith-compatible profile) that this
32+
# reusable workflow's default `sonatype-oss-release` value would otherwise miss. Remove
33+
# this override once the parent moves to a released, Cloudsmith-enabled killbill-oss-parent.
34+
release_profile: 'oss-release'
35+
secrets:
36+
BUILD_USER: ${{ secrets.BUILD_USER }}
37+
BUILD_TOKEN: ${{ secrets.BUILD_TOKEN }}
38+
CLOUDSMITH_CENTRAL_PASSWORD: ${{ secrets.CLOUDSMITH_CENTRAL_PASSWORD }}
39+
CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD: ${{ secrets.CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD }}
40+
CLOUDSMITH_DISTRIBUTION_MAN_USERNAME: ${{ secrets.CLOUDSMITH_DISTRIBUTION_MAN_USERNAME }}
41+
CLOUDSMITH_DISTRIBUTION_MAN_PASSWORD: ${{ secrets.CLOUDSMITH_DISTRIBUTION_MAN_PASSWORD }}
42+
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
43+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: cloudsmith_snapshot
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
snapshot:
9+
# maint-for-0-24-x: gh-actions-shared's own maint-for-0-24-x branch still ships the old
10+
# Sonatype-based snapshot workflow (MAVEN_USERNAME/MAVEN_PASSWORD secrets, sonatypeSnapshots:
11+
# true), not Cloudsmith. Use @main instead, which has the Cloudsmith-aware reusable snapshot
12+
# workflow.
13+
uses: killbill/gh-actions-shared/.github/workflows/snapshot.yml@main
14+
# maint-for-0-24-x: this reusable workflow configures settings.xml server id "central" with
15+
# a Cloudsmith password, but killbill-oss-parent's maint-for-0-24-x lineage (tracked by this
16+
# plugin's 0.146.63 parent) still declares <distributionManagement/> repository id "central"
17+
# pointing at real Sonatype Central, causing a 401 on deploy. This plugin's pom.xml carries a
18+
# temporary local <distributionManagement/> override (repository id "cloudsmith", Cloudsmith
19+
# URLs) so no per-workflow input is needed here; remove that pom.xml override once the parent
20+
# moves to a released, Cloudsmith-enabled killbill-oss-parent.
21+
with:
22+
jdk: '11'
23+
jdk-distribution: 'temurin'
24+
secrets:
25+
CLOUDSMITH_CENTRAL_PASSWORD: ${{ secrets.CLOUDSMITH_CENTRAL_PASSWORD }}
26+
CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD: ${{ secrets.CLOUDSMITH_KILLBILL_MAVEN_REPO_PASSWORD }}
27+
CLOUDSMITH_DISTRIBUTION_MAN_USERNAME: ${{ secrets.CLOUDSMITH_DISTRIBUTION_MAN_USERNAME }}
28+
CLOUDSMITH_DISTRIBUTION_MAN_PASSWORD: ${{ secrets.CLOUDSMITH_DISTRIBUTION_MAN_PASSWORD }}

0 commit comments

Comments
 (0)