Skip to content

Revert "[#14802] Add resource for health check" #3

Revert "[#14802] Add resource for health check"

Revert "[#14802] Add resource for health check" #3

Workflow file for this run

name: Synchronize changes to the website
on:
push:
branches:
- 'main'
- '14.0.x'
- '15.*.x'
paths:
- 'documentation/**'
permissions:
contents: read # to fetch code (actions/checkout)
jobs:
upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Maven
uses: s4u/[email protected]
with:
java-version: 21
maven-version: 3.9.9
- name: Build docs with Maven
run: mvn install -Pdistribution -pl documentation -am
- name: Clone infinispan.github.io
uses: actions/checkout@master
with:
repository: infinispan/infinispan.github.io
ref: master
path: infinispan.github.io
- if: github.ref != 'refs/heads/15.2.x'
name: Copy docs to version
run: |
cp -r documentation/target/generated/1*/html/* infinispan.github.io/docs/${{ github.ref_name }}
- if: github.ref == 'refs/heads/15.2.x'
name: Copy docs to stable
run: |
cp -r documentation/target/generated/1*/html/* infinispan.github.io/docs/stable/
- name: Commit files
run: |
cd infinispan.github.io
git config -l | grep 'http\..*\.extraheader' | cut -d= -f1 | xargs -L1 git config --unset-all
git config --global user.email "[email protected]"
git config --global user.name "Infinispan"
git add . --all
git commit -m "Synchronized core docs from ${{ github.ref }}"
- name: Push to the community site
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'infinispan.github.io'
destination-github-username: 'infinispan'
destination-repository-name: 'infinispan.github.io'
user-email: [email protected]
target-branch: master