File tree Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Expand file tree Collapse file tree 1 file changed +12
-20
lines changed Original file line number Diff line number Diff line change @@ -27,35 +27,27 @@ concurrency:
27
27
cancel-in-progress : false
28
28
29
29
jobs :
30
- # Build job
31
- build :
30
+ BuildPages :
31
+ if : ${{ github.repository == 'tim-janik/anklang' }}
32
32
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 }
34
34
steps :
35
35
- name : Checkout Anklang
36
36
run : |
37
- pwd && ls -al
38
- rm -rf * .[^.]* ..?*
37
+ pwd && ls -al && rm -rf * .[^.]* ..?*
39
38
git clone --recurse-submodules https://github.com/tim-janik/anklang.git .
40
39
- name : Setup Pages
41
40
id : pages
42
41
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
44
43
- run : make mkdocs -j`nproc`
44
+ # (cd out/site/ && python3 -m http.server 8003 )
45
45
- 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/ }
50
48
51
- # Deployment job
52
- deploy :
53
- environment :
54
- name : github-pages
55
- url : ${{ steps.deployment.outputs.page_url }}
49
+ DeployPages :
50
+ needs : BuildPages
56
51
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 } ]
You can’t perform that action at this time.
0 commit comments