Skip to content

Commit baa92e2

Browse files
Release with release please (salesforce#99)
1 parent 495af86 commit baa92e2

File tree

4 files changed

+88
-1
lines changed

4 files changed

+88
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.2.7"
3+
}

.github/release-please-config.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"packages": {
3+
".": {
4+
"release-type": "maven",
5+
"package-name": "multicloudj",
6+
"changelog-sections": [
7+
{"type": "feat", "section": "Features", "hidden": false},
8+
{"type": "fix", "section": "Bug Fixes", "hidden": false},
9+
{"type": "perf", "section": "Performance Improvements", "hidden": false},
10+
{"type": "blobstore", "section": "Blob Store", "hidden": false},
11+
{"type": "docstore", "section": "Document Store", "hidden": false},
12+
{"type": "sts", "section": "STS", "hidden": false},
13+
{"type": "pubsub", "section": "PubSub", "hidden": false},
14+
{"type": "refactor", "section": "Code Refactoring", "hidden": false},
15+
{"type": "revert", "section": "Reverts", "hidden": false},
16+
{"type": "docs", "section": "Documentation", "hidden": true},
17+
{"type": "test", "section": "Tests", "hidden": true},
18+
{"type": "chore", "section": "Chores", "hidden": true},
19+
{"type": "build", "section": "Build System", "hidden": true},
20+
{"type": "ci", "section": "CI", "hidden": true}
21+
]
22+
}
23+
}
24+
}

.github/workflows/maven-release.yml renamed to .github/workflows/maven-release.yml.deprecated

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ jobs:
9393
body_path: changelog.txt
9494
draft: false
9595
prerelease: false
96-
generate_release_notes: true
9796
env:
9897
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9998

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Release Please
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
environment: production
16+
outputs:
17+
release_created: ${{ steps.release.outputs.release_created }}
18+
tag_name: ${{ steps.release.outputs.tag_name }}
19+
20+
steps:
21+
- uses: googleapis/release-please-action@v4
22+
id: release
23+
with:
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
26+
publish:
27+
needs: release-please
28+
if: ${{ needs.release-please.outputs.release_created }}
29+
runs-on: ubuntu-latest
30+
environment: production
31+
permissions:
32+
contents: write
33+
packages: write
34+
35+
steps:
36+
- name: Checkout code
37+
uses: actions/checkout@v4
38+
with:
39+
fetch-depth: 0
40+
41+
- name: Set up JDK 11
42+
uses: actions/setup-java@v4
43+
with:
44+
java-version: '11'
45+
distribution: 'temurin'
46+
cache: 'maven'
47+
server-id: central-mj
48+
server-username: MAVEN_USERNAME
49+
server-password: MAVEN_PASSWORD
50+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
51+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
52+
53+
- name: Build and test
54+
run: mvn clean verify -Dmaven.test.failure.ignore=false
55+
56+
- name: Deploy to Maven Central
57+
env:
58+
MAVEN_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
59+
MAVEN_PASSWORD: ${{ secrets.SONATYPE_TOKEN }}
60+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
61+
run: mvn deploy -Prelease -DskipTests

0 commit comments

Comments
 (0)