Skip to content

Commit 65d22e4

Browse files
committed
.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 <[email protected]>
1 parent a74f8ff commit 65d22e4

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

.github/workflows/pages.yml

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,27 @@ concurrency:
2727
cancel-in-progress: false
2828

2929
jobs:
30-
# Build job
31-
build:
30+
BuildPages:
31+
if: ${{ github.repository == 'tim-janik/anklang' }}
3232
runs-on: ubuntu-latest
33-
container: { image: 'ghcr.io/tim-janik/anklang-ci:jammy-latest' }
33+
container: { image: 'ghcr.io/tim-janik/anklang-ci:noble-latest', options: --user runner }
3434
steps:
3535
- name: Checkout Anklang
3636
run: |
37-
pwd && ls -al
38-
rm -rf * .[^.]* ..?*
37+
pwd && ls -al && rm -rf * .[^.]* ..?*
3938
git clone --recurse-submodules https://github.com/tim-janik/anklang.git .
4039
- name: Setup Pages
4140
id: pages
4241
uses: actions/configure-pages@v5
43-
- run: echo -e 'prefix=/\n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
42+
- run: echo -e ' prefix=/ \n CC=clang \n CXX=clang++ \n CLANG_TIDY=clang-tidy ' > config-defaults.mk
4443
- run: make mkdocs -j`nproc`
44+
# (cd out/site/ && python3 -m http.server 8003 )
4545
- run: ls -al out/site/
46-
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@v3
48-
with:
49-
path: ./out/site/
46+
- uses: actions/upload-pages-artifact@v3
47+
with: { path: ./out/site/ }
5048

51-
# Deployment job
52-
deploy:
53-
environment:
54-
name: github-pages
55-
url: ${{ steps.deployment.outputs.page_url }}
49+
DeployPages:
50+
needs: BuildPages
5651
runs-on: ubuntu-latest
57-
needs: build
58-
steps:
59-
- name: Deploy to GitHub Pages
60-
id: deployment
61-
uses: actions/deploy-pages@v4
52+
environment: { name: github-pages, url: "${{ steps.deployment.outputs.page_url }}" }
53+
steps: [ { id: deployment, uses: actions/deploy-pages@v4 } ]

0 commit comments

Comments
 (0)