pages.yml (2097B)
1 # Copyright (c) the JPEG XL Project Authors. All rights reserved. 2 # 3 # Use of this source code is governed by a BSD-style 4 # license that can be found in the LICENSE file. 5 6 # Simple workflow for deploying static content to GitHub Pages 7 name: Deploy static content to Pages 8 9 on: 10 # Runs on pushes targeting the default branch 11 push: 12 branches: ["main"] 13 14 # Allows you to run this workflow manually from the Actions tab 15 workflow_dispatch: 16 17 # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages 18 permissions: 19 contents: read 20 pages: write 21 id-token: write 22 23 # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. 24 # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. 25 concurrency: 26 group: "pages" 27 cancel-in-progress: false 28 29 jobs: 30 # Single deploy job since we're just deploying 31 deploy: 32 environment: 33 name: github-pages 34 url: ${{ steps.deployment.outputs.page_url }} 35 runs-on: ubuntu-latest 36 steps: 37 - name: Checkout 38 uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 39 with: 40 submodules: true 41 fetch-depth: 2 42 - name: Install build deps 43 run: | 44 sudo rm -f /var/lib/man-db/auto-update 45 sudo apt update 46 sudo apt install -y \ 47 cmake \ 48 doxygen \ 49 graphviz 50 - name: Sphinx dependencies 51 run: | 52 pip3 install -r doc/sphinx/requirements.txt 53 - name: Build 54 run: | 55 cmake -B build . \ 56 -DCMAKE_BUILD_TYPE=RelWithDebInfo \ 57 -DJPEGXL_FORCE_SYSTEM_BROTLI=ON \ 58 -DBUILD_TESTING=OFF 59 cmake --build build -- rtd-html 60 - name: Setup Pages 61 uses: actions/configure-pages@v4 62 - name: Upload artifact 63 uses: actions/upload-pages-artifact@v3 64 with: 65 # Upload entire repository 66 path: './build/rtd' 67 - name: Deploy to GitHub Pages 68 id: deployment 69 uses: actions/deploy-pages@v4