From 000f07a5794f64a9eec7f92b9abfa79bfdb80885 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 19 Jun 2023 08:32:02 -0500 Subject: [PATCH 1/6] Fixes issue #3445 - Add publishing of Maven plugin documentation to build workflow --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 18c4ad9693..bb4a0413ea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -188,3 +188,30 @@ jobs: env: MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} + maven-plugin-documentation: + runs-on: ubuntu-latest + steps: + - name: Checkout Sources + uses: actions/checkout@v3 + - name: Set up Java + uses: actions/setup-java@v3 + with: + cache: 'maven' + distribution: 'temurin' + java-version: 20 + - name: Build with Maven + run: | + mvn -B -DskipTests -DskipITs -ntp install + cd maven/plugins/piranha-maven-plugin + mvn -B -DskipTests -DskipITs -ntp site + cd ../../.. + git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@github.com/piranhacloud/piranha-website + rm -rf piranha-website/maven/piranha-maven-plugin || true + mkdir -p piranha-website/maven/piranha-maven-plugin || true + cp -R maven/plugins/piranha-maven-plugin/target/site/* piranha-website/maven/piranha-maven-plugin/ + cd piranha-website + git config --global user.email "noreply@piranha.cloud" + git config --global user.name "Automated publish" + git add . + git commit -a -m "Publishing Maven plugin documentation" + git push From ae6a9b4b54589512ebb504b84602a7334720dd59 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 19 Jun 2023 08:41:55 -0500 Subject: [PATCH 2/6] Fixes issue #3445 - Add publishing of Maven plugin documentation to build workflow --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bb4a0413ea..8a81bddffc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -193,6 +193,8 @@ jobs: steps: - name: Checkout Sources uses: actions/checkout@v3 + with: + token: ${{ secrets.GIT_PASSWORD }} - name: Set up Java uses: actions/setup-java@v3 with: From f540469f3ee053db844b557792ca0598acd1f62e Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 19 Jun 2023 08:46:37 -0500 Subject: [PATCH 3/6] Fixes issue #3445 - Add publishing of Maven plugin documentation to build workflow --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a81bddffc..93639e11d3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -191,10 +191,14 @@ jobs: maven-plugin-documentation: runs-on: ubuntu-latest steps: - - name: Checkout Sources + - name: Checkout Piranha + uses: actions/checkout@v3 + - name: Checkout Piranha Website uses: actions/checkout@v3 with: - token: ${{ secrets.GIT_PASSWORD }} + repository: piranha-cloud/piranha-website + token: ${{ secrets.GIT_PASSWORD }} + path: piranha-website - name: Set up Java uses: actions/setup-java@v3 with: @@ -207,7 +211,6 @@ jobs: cd maven/plugins/piranha-maven-plugin mvn -B -DskipTests -DskipITs -ntp site cd ../../.. - git clone https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@github.com/piranhacloud/piranha-website rm -rf piranha-website/maven/piranha-maven-plugin || true mkdir -p piranha-website/maven/piranha-maven-plugin || true cp -R maven/plugins/piranha-maven-plugin/target/site/* piranha-website/maven/piranha-maven-plugin/ From 68d655d1bf251306706a04d09067ca44966bfaa8 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 19 Jun 2023 08:47:59 -0500 Subject: [PATCH 4/6] Fixes issue #3445 - Add publishing of Maven plugin documentation to build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93639e11d3..13c326ebe2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -197,7 +197,7 @@ jobs: uses: actions/checkout@v3 with: repository: piranha-cloud/piranha-website - token: ${{ secrets.GIT_PASSWORD }} + token: ${{ secrets.GIT_PASSWORD }} path: piranha-website - name: Set up Java uses: actions/setup-java@v3 From feff305ae751cdf018aad58c1ec42cea709f57a9 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 19 Jun 2023 08:54:18 -0500 Subject: [PATCH 5/6] Fixes issue #3445 - Add publishing of Maven plugin documentation to build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 13c326ebe2..a825471558 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -197,7 +197,7 @@ jobs: uses: actions/checkout@v3 with: repository: piranha-cloud/piranha-website - token: ${{ secrets.GIT_PASSWORD }} + token: ${{ secrets.GITHUB_TOKEN }} path: piranha-website - name: Set up Java uses: actions/setup-java@v3 From 6a9b0e4bf913c1ea2fc268ba22875f0244cdc635 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Mon, 19 Jun 2023 08:55:40 -0500 Subject: [PATCH 6/6] Fixes issue #3445 - Add publishing of Maven plugin documentation to build workflow --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a825471558..13c326ebe2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -197,7 +197,7 @@ jobs: uses: actions/checkout@v3 with: repository: piranha-cloud/piranha-website - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.GIT_PASSWORD }} path: piranha-website - name: Set up Java uses: actions/setup-java@v3