diff --git a/.all-contributorsrc b/.all-contributorsrc index f0d29473..e0cfc6b4 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -176,7 +176,9 @@ "avatar_url": "https://avatars.githubusercontent.com/u/56329339?v=4", "profile": "https://github.com/mcruzdev", "contributions": [ - "infra" + "infra", + "code", + "doc" ] }, { diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cd88acf..bc5f9bfd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,7 +26,7 @@ jobs: name: Build - RESTEasy Classic runs-on: ${{ matrix.os }} strategy: - matrix: + matrix: os: [ubuntu-latest, windows-latest] java: [ { 'version': '11' }, @@ -48,19 +48,6 @@ jobs: - name: Build with Maven run: mvn '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml - - name: Store PR id - if: github.event_name == 'pull_request' - run: | - echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt - - - name: Publishing directory for PR preview - if: github.event_name == 'pull_request' - uses: actions/upload-artifact@v4 - with: - name: site - path: ./docs/target/generated-docs - retention-days: 3 - build_reactive: name: Build - RESTEasy Reactive runs-on: ${{ matrix.os }} @@ -86,16 +73,3 @@ jobs: - name: Build with Maven run: mvn -Presteasy-reactive '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml - - - name: Store PR id - if: github.event_name == 'pull_request' - run: | - echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt - - - name: Publishing directory for PR preview - if: github.event_name == 'pull_request' - uses: actions/upload-artifact@v4 - with: - name: site - path: ./docs/target/generated-docs - retention-days: 3 diff --git a/.github/workflows/build_website.yml b/.github/workflows/build_website.yml new file mode 100644 index 00000000..bd5a8822 --- /dev/null +++ b/.github/workflows/build_website.yml @@ -0,0 +1,50 @@ +name: Build Website + +on: + push: + branches: + - "main" + paths-ignore: + - '.gitignore' + - 'CODEOWNERS' + - 'LICENSE' + - '*.md' + - '*.adoc' + - '*.txt' + - '.all-contributorsrc' + pull_request: + paths-ignore: + - '.gitignore' + - 'CODEOWNERS' + - 'LICENSE' + - '*.md' + - '*.txt' + - '.all-contributorsrc' +jobs: + build-website: + name: Build Website + runs-on: ubuntu-latest + steps: + - 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 '-Dorg.slf4j.simpleLogger.log.org.openapitools=off' -B formatter:validate impsort:check verify --file pom.xml -DskipTests + + - name: Store PR id + if: github.event_name == 'pull_request' + run: | + echo ${{ github.event.number }} > ./docs/target/generated-docs/pr-id.txt + + - name: Publishing directory for PR preview + if: github.event_name == 'pull_request' + uses: actions/upload-artifact@v4 + with: + name: site + path: ./docs/target/generated-docs + retention-days: 3 \ No newline at end of file diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index aa0d3853..e7bef0b9 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -2,7 +2,7 @@ name: Surge.sh Preview on: workflow_run: - workflows: ["Build"] + workflows: ["Build Website"] types: - completed diff --git a/README.md b/README.md index c00c60a7..60659ecc 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d Adriano Augusto Tagliaferro
Adriano Augusto Tagliaferro

⚠️ Christian Berger
Christian Berger

💻 Bruno Alves
Bruno Alves

💻 - Matheus Cruz
Matheus Cruz

🚇 + Matheus Cruz
Matheus Cruz

🚇 💻 📖 Laurent Perez
Laurent Perez

💻 Bas Passon
Bas Passon

💻 diff --git a/pom.xml b/pom.xml index ec9c0e12..75ff449a 100644 --- a/pom.xml +++ b/pom.xml @@ -28,7 +28,7 @@ 11 UTF-8 UTF-8 - 3.6.3 + 3.6.4 3.25.7 3.24.2 4.0.2