From 3f3f666255aa8666d0ffd6c822cc60387e5c0eb6 Mon Sep 17 00:00:00 2001 From: Iwao AVE! Date: Sun, 3 Dec 2023 13:31:00 +0900 Subject: [PATCH 1/2] [site] Update xsd from decoration to site --- src/site/site.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/site/site.xml b/src/site/site.xml index 9f8e8cab..4ba6001f 100644 --- a/src/site/site.xml +++ b/src/site/site.xml @@ -16,9 +16,8 @@ limitations under the License. --> - + @@ -41,4 +40,5 @@ - + + From a3962e52c8d0edc3d8899c383c24f926921d342a Mon Sep 17 00:00:00 2001 From: Iwao AVE! Date: Sun, 3 Dec 2023 13:31:20 +0900 Subject: [PATCH 2/2] [GHA] Add 'site' page action --- .github/workflows/site.yaml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/site.yaml diff --git a/.github/workflows/site.yaml b/.github/workflows/site.yaml new file mode 100644 index 00000000..299c414a --- /dev/null +++ b/.github/workflows/site.yaml @@ -0,0 +1,35 @@ +name: Site + +on: + push: + branches: + - site + +jobs: + build: + if: github.repository_owner == 'mybatis' && ! contains(toJSON(github.event.head_commit.message), '[maven-release-plugin]') + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up JDK + uses: actions/setup-java@v3 + with: + java-version: 21 + distribution: zulu + - uses: webfactory/ssh-agent@master + with: + ssh-private-key: ${{ secrets.DEPLOY_KEY }} + - name: Build site + run: ./mvnw site site:stage -DskipTests -B -V --no-transfer-progress -Dlicense.skip=true + env: + CI_DEPLOY_USERNAME: ${{ secrets.CI_DEPLOY_USERNAME }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Deploy Site to gh-pages + uses: JamesIves/github-pages-deploy-action@v4.4.3 + with: + ssh-key: true + branch: gh-pages + folder: target/staging + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +