name: Documentation on: push: branches: [develop] workflow_dispatch: concurrency: # Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest container: image: ghcr.io/xrplf/clio-ci:213752862ca95ecadeb59a6176c3db91a7864b3e steps: - name: Checkout uses: actions/checkout@v4 with: lfs: true - name: Prepare runner uses: XRPLF/actions/.github/actions/prepare-runner@7951b682e5a2973b28b0719a72f01fc4b0d0c34f with: disable_ccache: true - name: Create build directory run: mkdir build_docs - name: Configure CMake working-directory: build_docs run: cmake ../docs - name: Build working-directory: build_docs run: cmake --build . --target docs - name: Setup Pages uses: actions/configure-pages@v5 - name: Upload artifact uses: actions/upload-pages-artifact@v4 with: path: build_docs/html name: docs-develop deploy: needs: build permissions: pages: write id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 with: artifact_name: docs-develop