12 changed files with 170 additions and 29 deletions
-
25.github/workflows/pull_request.yml
-
42.github/workflows/release.yml
-
13.idea/.gitignore
-
8.idea/indexLayout.xml
-
6.idea/vcs.xml
-
37.releaserc
-
19CHANGELOG.md
-
15pom.xml
-
5src/main/java/org/keycloak/social/discord/DiscordIdentityProvider.java
-
6src/main/java/org/keycloak/social/discord/DiscordIdentityProviderConfig.java
-
3src/main/java/org/keycloak/social/discord/DiscordIdentityProviderFactory.java
-
20src/main/java/org/keycloak/social/discord/DiscordUserAttributeMapper.java
@ -0,0 +1,25 @@ |
|||
name: Build and test for the pull request |
|||
|
|||
on: |
|||
pull_request: |
|||
types: [opened, synchronize] |
|||
|
|||
jobs: |
|||
build: |
|||
name: Build and test |
|||
runs-on: ubuntu-latest |
|||
if: "!contains(github.event.head_commit.message, '[ci skip]')" |
|||
steps: |
|||
- name: Checkout sources |
|||
uses: actions/checkout@v4 |
|||
|
|||
- name: Set up JDK 17 |
|||
uses: actions/setup-java@v4 |
|||
with: |
|||
distribution: 'temurin' |
|||
java-version: 17 |
|||
cache: 'maven' |
|||
|
|||
- name: Build with Maven |
|||
run: mvn -B package |
|||
|
@ -0,0 +1,42 @@ |
|||
name: Release CI |
|||
|
|||
on: |
|||
push: |
|||
branches: |
|||
- master |
|||
|
|||
jobs: |
|||
build: |
|||
name: Build and release |
|||
runs-on: ubuntu-latest |
|||
if: "!contains(github.event.head_commit.message, '[ci skip]')" |
|||
steps: |
|||
- name: Checkout sources |
|||
uses: actions/checkout@v4 |
|||
with: |
|||
# Disabling shallow clone is needed for correctly determing next release with semantic release |
|||
fetch-depth: 0 |
|||
persist-credentials: false |
|||
|
|||
- name: Set up JDK |
|||
uses: actions/setup-java@v4 |
|||
with: |
|||
distribution: 'temurin' |
|||
java-version: 17 |
|||
cache: 'maven' |
|||
|
|||
- name: Test |
|||
run: mvn -B test |
|||
|
|||
- name: Semantic release |
|||
id: semantic |
|||
uses: cycjimmy/semantic-release-action@v4 |
|||
with: |
|||
semantic_version: 23 |
|||
extra_plugins: | |
|||
@semantic-release/changelog@6 |
|||
@terrestris/maven-semantic-release@2 |
|||
@semantic-release/git@10 |
|||
env: |
|||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|||
|
@ -0,0 +1,13 @@ |
|||
# Default ignored files |
|||
/shelf/ |
|||
/workspace.xml |
|||
# Rider ignored files |
|||
/.idea.keycloak-discord.iml |
|||
/modules.xml |
|||
/contentModel.xml |
|||
/projectSettingsUpdater.xml |
|||
# Editor-based HTTP Client requests |
|||
/httpRequests/ |
|||
# Datasource local storage ignored files |
|||
/dataSources/ |
|||
/dataSources.local.xml |
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="UserContentModel"> |
|||
<attachedFolders /> |
|||
<explicitIncludes /> |
|||
<explicitExcludes /> |
|||
</component> |
|||
</project> |
@ -0,0 +1,6 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project version="4"> |
|||
<component name="VcsDirectoryMappings"> |
|||
<mapping directory="" vcs="Git" /> |
|||
</component> |
|||
</project> |
@ -1,13 +1,36 @@ |
|||
{ |
|||
"branches": [ |
|||
"master" |
|||
], |
|||
"plugins": [ |
|||
"@semantic-release/commit-analyzer", |
|||
"@semantic-release/release-notes-generator", |
|||
"@conveyal/maven-semantic-release", |
|||
["@semantic-release/github", { |
|||
"assets": [ |
|||
{"path": "ear/target/*.ear"} |
|||
] |
|||
}] |
|||
"@semantic-release/changelog", |
|||
[ |
|||
"@terrestris/maven-semantic-release", |
|||
{ |
|||
"mavenTarget": "deploy", |
|||
"clean": false, |
|||
"updateSnapshotVersion": true, |
|||
"settingsPath": "/home/runner/.m2/settings.xml", |
|||
"processAllModules": true |
|||
} |
|||
], |
|||
[ |
|||
"@semantic-release/git", |
|||
{ |
|||
"assets": [ |
|||
"CHANGELOG.md", "pom.xml", "**/pom.xml" |
|||
], |
|||
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}" |
|||
} |
|||
], |
|||
[ |
|||
"@semantic-release/github", |
|||
{ |
|||
"successComment": false, |
|||
"failTitle": false |
|||
} |
|||
] |
|||
] |
|||
} |
|||
|
@ -0,0 +1,19 @@ |
|||
## [0.6.1](https://github.com/wadahiro/keycloak-discord/compare/v0.6.0...v0.6.1) (2024-11-02) |
|||
|
|||
|
|||
### Bug Fixes |
|||
|
|||
* eliminate the possibility of NullPointerException ([#56](https://github.com/wadahiro/keycloak-discord/issues/56)) ([e2b5991](https://github.com/wadahiro/keycloak-discord/commit/e2b5991c7ef33ee3ac6483ca00e3e854bb935371)) |
|||
|
|||
# [0.6.0](https://github.com/wadahiro/keycloak-discord/compare/v0.5.0...v0.6.0) (2024-11-02) |
|||
|
|||
|
|||
### Bug Fixes |
|||
|
|||
* ignore discriminator if the value is "0" ([4c68b69](https://github.com/wadahiro/keycloak-discord/commit/4c68b69b0bf0d6421589e03e4baf8bbbe5138caa)) |
|||
|
|||
|
|||
### Features |
|||
|
|||
* update to keycloak 26.0.5 ([05a3df4](https://github.com/wadahiro/keycloak-discord/commit/05a3df43f21289762f72e3ac6780fd6b543d8c07)) |
|||
* updated provider for Keycloak 25.x ([#49](https://github.com/wadahiro/keycloak-discord/issues/49)) ([c10480b](https://github.com/wadahiro/keycloak-discord/commit/c10480b79864a85817d20d48f949475020322090)) |
Write
Preview
Loading…
Cancel
Save
Reference in new issue