name: Continuous Integration on: push: branches: - main jobs: build: runs-on: ubuntu-latest env: CI_COMMIT_MESSAGE: Continuous Integration update docs CI_COMMIT_AUTHOR: Continuous Integration steps: - uses: actions/checkout@v3 with: path: ./static - uses: actions/checkout@v3 with: ref: pages path: ./pages - run: apt update -y - run: apt install python3 python3-pip -y - run: pip3 install mkdocs-material - run: mkdocs build working-directory: ./static - run: | git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}" git config --global user.email "me+ci@xeovalyte.dev" - run: | rm pages/* -r cp static/site/* pages/ -r - run: | git add . git commit -m "${{ env.CI_COMMIT_MESSAGE }}" git push working-directory: ./pages - run: curl https://docs.xeovalyte.dev/update/static