Skip to content

Commit

Permalink
.github/workflows/pages.yml: run on noble-latest and only if tim-jani…
Browse files Browse the repository at this point in the history
…k/anklang

* cleanup names and comments
* build only if tim-janik/anklang
* build on noble-latest

Signed-off-by: Tim Janik <[email protected]>
  • Loading branch information
tim-janik committed Nov 10, 2024
1 parent a74f8ff commit 65d22e4
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 } ]

0 comments on commit 65d22e4

Please sign in to comment.