Skip to content

Commit

Permalink
chore: add release please
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasl committed Sep 19, 2023
1 parent b51d994 commit 9c5b0e4
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Run Release Please
on:
push:
branches:
- main

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
release-type: maven
token: ${{secrets.GITHUB_TOKEN}}
default-branch: main
outputs:
release_created: ${{ steps.release.outputs.release_created }}
release_tag_name: ${{ steps.release.outputs.tag_name }}

java-release:
needs: release-please
runs-on: ubuntu-latest
if: ${{ needs.release-please.outputs.release_created }}
steps:
- name: Check out src from Git
uses: actions/checkout@v4
with:
ref: ${{ needs.release-please.outputs.release_tag_name }}

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17

- name: Cache Maven packages
uses: actions/cache@v3.3.1
with:
path: ~/.m2
key: ${{ runner.os }}-java-17-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-java-17-m2

- name: Deploy with Maven
run: |
mvn --batch-mode \
--settings release/m2-settings.xml
clean deploy
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{".":"0.0.1"}
72 changes: 72 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"bootstrap-sha": "5ce2b8192476750dc738ac725ec50017c7cd17f4",
"packages": {
".": {
"package-name": "dev.openfeature.contrib.providers.confidence",
"release-type": "maven",
"monorepo-tags": false,
"include-component-in-tag": false,
"bump-minor-pre-major": true,
"bump-patch-for-minor-pre-major": true,
"versioning": "default",
"extra-files": [
"pom.xml",
"README.md"
],
"changelog-sections": [
{
"type": "fix",
"section": "πŸ› Bug Fixes"
},
{
"type": "feat",
"section": "✨ New Features"
},
{
"type": "chore",
"section": "🧹 Chore"
},
{
"type": "docs",
"section": "πŸ“š Documentation"
},
{
"type": "perf",
"section": "πŸš€ Performance"
},
{
"type": "build",
"hidden": true,
"section": "πŸ› οΈ Build"
},
{
"type": "deps",
"section": "πŸ“¦ Dependencies"
},
{
"type": "ci",
"hidden": true,
"section": "🚦 CI"
},
{
"type": "refactor",
"section": "πŸ”„ Refactoring"
},
{
"type": "revert",
"section": "πŸ”™ Reverts"
},
{
"type": "style",
"hidden": true,
"section": "🎨 Styling"
},
{
"type": "test",
"hidden": true,
"section": "πŸ§ͺ Tests"
}
]
}
}
}

0 comments on commit 9c5b0e4

Please sign in to comment.