Dump the build environment info at beginning of a build #85
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Builds & deploys a Jekyll site to GitHub Pages. | |
| name: GitHub Pages deployment | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'docs/**' | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| # Build job | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Jekyll | |
| run: | | |
| sudo apt update | |
| sudo apt install jekyll | |
| - name: Build image | |
| run: | | |
| podman build --target base --tag rpm -f tests/Dockerfile . | |
| - name: Generate Jekyll pages | |
| run: | | |
| mkdir _build | |
| podman run -v $PWD:/srv:z --workdir /srv/_build --rm rpm sh -c \ | |
| "cmake -DWITH_WEBSITE=ON -DWITH_DOXYGEN=ON .. && make pages" | |
| - name: Setup Pages | |
| id: pages | |
| uses: actions/configure-pages@v5 | |
| - name: Build with Jekyll | |
| # Outputs to the './_site' directory by default | |
| run: jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" | |
| working-directory: _build/site | |
| env: | |
| JEKYLL_ENV: production | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _build/site/_site | |
| # Deployment job | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |