-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Initial version of the SPI for publising the events to the Open…
…FGA platform.
- Loading branch information
Showing
4 changed files
with
151 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
types: [ | ||
{ types: ["feat", "feature"], label: "✨ New Features" }, | ||
{ types: ["fix", "bugfix"], label: "🐛 Bugfixes" }, | ||
{ types: ["improvements", "enhancement"], label: "🔨 Improvements" }, | ||
{ types: ["perf"], label: "🏎️ Performance Improvements" }, | ||
{ types: ["build", "ci"], label: "🏗️ Build System" }, | ||
{ types: ["refactor"], label: "🪚 Refactors" }, | ||
{ types: ["doc", "docs"], label: "📚 Documentation Changes" }, | ||
{ types: ["test", "tests"], label: "🔍 Tests" }, | ||
{ types: ["style"], label: "💅 Code Style Changes" }, | ||
{ types: ["chore"], label: "🧹 Chores" }, | ||
{ types: ["other"], label: "Other Changes" }, | ||
], | ||
|
||
excludeTypes: ["other"], | ||
|
||
renderTypeSection: function (label, commits) { | ||
let text = `\n## ${label}\n`; | ||
commits.forEach((commit) => { | ||
const scope = commit.scope ? `**${commit.scope}**: ` : '' | ||
text += `- [\`${commit.sha.substring(0, 7)}\`](${commit.url}) ${scope} ${commit.subject}\n`; | ||
}); | ||
return text; | ||
}, | ||
|
||
renderChangelog: function (release, changes) { | ||
const now = new Date(); | ||
return `# ${release} - ${now.toISOString().substr(0, 10)}\n` + changes + "\n\n"; | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
|
||
jobs: | ||
build-upload-release: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: write | ||
discussions: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get version from tag | ||
id: version | ||
run: echo ::set-output name=number::$(echo $GITHUB_REF | cut -d / -f 3 | cut -d / -f 3 | sed -e 's/^v//') | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: 17 | ||
|
||
- name: Get jar name | ||
id: get_name | ||
run: echo "::set-output name=name::$(mvn help:evaluate -Dexpression=project.artifactId -q -DforceStdout)" | ||
|
||
- name: Build with maven | ||
run: mvn clean package | ||
|
||
- name: Create changelog text | ||
id: changelog | ||
uses: loopwerk/tag-changelog@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
exclude_types: other,doc,chore | ||
config_file: .github/tag-changelog-config.js | ||
|
||
- name: Create release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.version.outputs.number }} | ||
release_name: ${{ steps.version.outputs.number }} | ||
body: ${{ steps.changelog.outputs.changes }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload JAR to release | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./target/${{ steps.get_name.outputs.name }}.jar | ||
asset_name: ${{ steps.get_name.outputs.name }}.jar | ||
asset_content_type: application/java-archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters