From 65d22e4e1af0e6a4b5fe971d39a8614a93b41b98 Mon Sep 17 00:00:00 2001 From: Tim Janik Date: Sun, 10 Nov 2024 14:56:46 +0100 Subject: [PATCH] .github/workflows/pages.yml: run on noble-latest and only if tim-janik/anklang * cleanup names and comments * build only if tim-janik/anklang * build on noble-latest Signed-off-by: Tim Janik --- .github/workflows/pages.yml | 32 ++++++++++++-------------------- 1 file changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index f937a6d7..615e5d42 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -27,35 +27,27 @@ concurrency: cancel-in-progress: false jobs: - # Build job - build: + BuildPages: + if: ${{ github.repository == 'tim-janik/anklang' }} runs-on: ubuntu-latest - container: { image: 'ghcr.io/tim-janik/anklang-ci:jammy-latest' } + container: { image: 'ghcr.io/tim-janik/anklang-ci:noble-latest', options: --user runner } steps: - name: Checkout Anklang run: | - pwd && ls -al - rm -rf * .[^.]* ..?* + pwd && ls -al && rm -rf * .[^.]* ..?* git clone --recurse-submodules https://github.com/tim-janik/anklang.git . - name: Setup Pages id: pages uses: actions/configure-pages@v5 - - run: echo -e 'prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk + - run: echo -e ' prefix=/ \n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk - run: make mkdocs -j`nproc` + # (cd out/site/ && python3 -m http.server 8003 ) - run: ls -al out/site/ - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 - with: - path: ./out/site/ + - uses: actions/upload-pages-artifact@v3 + with: { path: ./out/site/ } - # Deployment job - deploy: - environment: - name: github-pages - url: ${{ steps.deployment.outputs.page_url }} + DeployPages: + needs: BuildPages runs-on: ubuntu-latest - needs: build - steps: - - name: Deploy to GitHub Pages - id: deployment - uses: actions/deploy-pages@v4 + environment: { name: github-pages, url: "${{ steps.deployment.outputs.page_url }}" } + steps: [ { id: deployment, uses: actions/deploy-pages@v4 } ]