Sébastien DEU
1 year ago
No known key found for this signature in database
GPG Key ID: 54B100C849A5097A
6 changed files with
45 additions and
5306 deletions
-
.github/workflows/pull_request.yml
-
.github/workflows/release.yml
-
.gitignore
-
.releaserc
-
pom.xml
-
yarn.lock
|
|
@ -2,34 +2,23 @@ name: Pull Request CI |
|
|
|
|
|
|
|
on: [pull_request] |
|
|
|
|
|
|
|
env: |
|
|
|
JAVA_VERSION: 17 |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
name: Build |
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- name: Set up JDK 17 |
|
|
|
|
|
|
|
- name: Set up JDK ${{ env.JAVA_VERSION }} |
|
|
|
uses: actions/setup-java@v3 |
|
|
|
with: |
|
|
|
java-version: ${{ env.JAVA_VERSION }} |
|
|
|
distribution: 'temurin' |
|
|
|
java-version: '17' |
|
|
|
cache: 'maven' |
|
|
|
- name: Setup node |
|
|
|
uses: actions/setup-node@v3 |
|
|
|
with: |
|
|
|
node-version: '16' |
|
|
|
cache: 'yarn' |
|
|
|
- name: Setup semantic-release |
|
|
|
run: | |
|
|
|
yarn global add @conveyal/maven-semantic-release@v4.5.0 semantic-release@15 |
|
|
|
echo "$(yarn global bin)" >> $GITHUB_PATH |
|
|
|
|
|
|
|
- name: Build with Maven |
|
|
|
run: mvn -B package |
|
|
|
- name: Dry Release |
|
|
|
# maven-semantic-release requires "maven-settings.xml" in the workspace directory |
|
|
|
run: | |
|
|
|
mv ~/.m2/settings.xml maven-settings.xml |
|
|
|
semantic-release --dry-run --branch master --use-conveyal-workflow --skip-maven-deploy |
|
|
|
env: |
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
|
|
|
@ -2,36 +2,36 @@ name: Release CI |
|
|
|
|
|
|
|
on: |
|
|
|
push: |
|
|
|
branches: |
|
|
|
- master |
|
|
|
tags: |
|
|
|
- '*.*.*' |
|
|
|
|
|
|
|
env: |
|
|
|
JAVA_VERSION: 17 |
|
|
|
|
|
|
|
jobs: |
|
|
|
build: |
|
|
|
name: Build and release |
|
|
|
runs-on: ubuntu-latest |
|
|
|
if: "!contains(github.event.head_commit.message, '[ci skip]')" |
|
|
|
|
|
|
|
steps: |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
- name: Set up JDK 17 |
|
|
|
uses: actions/setup-java@v3 |
|
|
|
with: |
|
|
|
distribution: 'temurin' |
|
|
|
java-version: '17' |
|
|
|
cache: 'maven' |
|
|
|
- name: Setup node |
|
|
|
uses: actions/setup-node@v3 |
|
|
|
with: |
|
|
|
node-version: '16' |
|
|
|
cache: 'yarn' |
|
|
|
- name: Setup semantic-release |
|
|
|
run: | |
|
|
|
yarn global add @conveyal/maven-semantic-release@v4.5.0 semantic-release@15 |
|
|
|
echo "$(yarn global bin)" >> $GITHUB_PATH |
|
|
|
- name: Release |
|
|
|
# maven-semantic-release requires "maven-settings.xml" in the workspace directory |
|
|
|
run: | |
|
|
|
mv ~/.m2/settings.xml maven-settings.xml |
|
|
|
semantic-release --branch master --use-conveyal-workflow --skip-maven-deploy |
|
|
|
env: |
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
|
|
|
- uses: actions/checkout@v3 |
|
|
|
|
|
|
|
- name: Set up JDK ${{ env.JAVA_VERSION }} |
|
|
|
uses: actions/setup-java@v3 |
|
|
|
with: |
|
|
|
java-version: ${{ env.JAVA_VERSION }} |
|
|
|
distribution: 'temurin' |
|
|
|
cache: 'maven' |
|
|
|
|
|
|
|
- name: Update extension version |
|
|
|
run: mvn versions:set -DnewVersion=${{ github.ref_name }} |
|
|
|
|
|
|
|
- name: Package provider |
|
|
|
run: mvn -B package |
|
|
|
|
|
|
|
- name: upload linux artifact |
|
|
|
uses: softprops/action-gh-release@v2 |
|
|
|
with: |
|
|
|
make_latest: true |
|
|
|
generate_release_notes: true |
|
|
|
files: target/keycloak-discord-${{ github.ref_name }}.jar |
|
|
@ -1,3 +1,7 @@ |
|
|
|
# IDE |
|
|
|
.idea |
|
|
|
|
|
|
|
# Maven |
|
|
|
target |
|
|
|
.project |
|
|
|
.classpath |
|
|
|
|
|
@ -1,13 +0,0 @@ |
|
|
|
{ |
|
|
|
"plugins": [ |
|
|
|
"@semantic-release/commit-analyzer", |
|
|
|
"@semantic-release/release-notes-generator", |
|
|
|
"@conveyal/maven-semantic-release", |
|
|
|
["@semantic-release/github", { |
|
|
|
"assets": [ |
|
|
|
{"path": "ear/target/*.ear"} |
|
|
|
] |
|
|
|
}] |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -12,6 +12,9 @@ |
|
|
|
|
|
|
|
<properties> |
|
|
|
<version.keycloak>22.0.1</version.keycloak> |
|
|
|
|
|
|
|
<maven.compiler.release>17</maven.compiler.release> |
|
|
|
<compiler-plugin.version>3.13.0</compiler-plugin.version> |
|
|
|
</properties> |
|
|
|
|
|
|
|
<dependencies> |
|
|
@ -44,12 +47,12 @@ |
|
|
|
<build> |
|
|
|
<plugins> |
|
|
|
<plugin> |
|
|
|
<groupId>org.apache.maven.plugins</groupId> |
|
|
|
<artifactId>maven-compiler-plugin</artifactId> |
|
|
|
<version>3.11.0</version> |
|
|
|
<version>${compiler-plugin.version}</version> |
|
|
|
<configuration> |
|
|
|
<source>17</source> |
|
|
|
<target>17</target> |
|
|
|
<compilerArgs> |
|
|
|
<arg>-parameters</arg> |
|
|
|
</compilerArgs> |
|
|
|
</configuration> |
|
|
|
</plugin> |
|
|
|
</plugins> |
|
|
|