Skip to content

Commit

Permalink
Fix again path in GH Action about docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 27, 2025
1 parent 75c2ca4 commit 2df7be5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,15 @@ jobs:
- name: Building JS docs
run: |
make js-doc
cd docs/js/assets/${{ env.FULL_VERSION }}
mv * ../
- name: Upload JS artifacts
uses: actions/upload-artifact@master
with:
name: js
path: docs/js/assets/
path: docs/js/assets/${{ env.FULL_VERSION }}

phpdoc:
name: "🐘 PHP-Doc"
if: github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:

Expand All @@ -71,13 +68,16 @@ jobs:
deploy:
needs: [ jsdoc, phpdoc ]
name: "📤 Deploy"
if: github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
# if: github.repository == '3liz/lizmap-web-client' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:

- name: Check out repository
uses: actions/checkout@v4

- name: Change tokens about versions
run: make version-doc

- name: Download PHP artifacts
uses: actions/download-artifact@master
with:
Expand All @@ -90,9 +90,6 @@ jobs:
name: js
path: docs/js/

- name: Change tokens about versions
run: make version-doc

- name: Upload all docs artifacts
uses: actions/upload-pages-artifact@v3
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ lizmap/www/assets/js/search.js
lizmap/www/assets/js/switcher-layers-actions.js
lizmap/www/assets/js/timemanager.js
lizmap/www/assets/js/view.js

# Docs
docs/.build
docs/js
docs/php

temp/lizmap/*
!temp/lizmap/.empty
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h3>API documentation VERSION</h3>
<div class="links">
<ul>
<li><a href="/lizmap-web-client/php">PHP</a></li>
<li><a href="/lizmap-web-client/js">JavaScript</a></li>
<li><a href="/lizmap-web-client/js/VERSION">JavaScript</a></li>
</ul>
</div>
</article>
Expand Down

0 comments on commit 2df7be5

Please sign in to comment.