Skip to content

Commit

Permalink
JSDoc - Try to forward the version number in the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jan 27, 2025
1 parent 2e82cab commit 8625060
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,22 @@ jobs:
node-version: 21

- name: Change tokens about versions
run: make version-doc
run: |
make version-doc
echo "FULL_VERSION=${FULL_VERSION}" >> $GITHUB_ENV
- name: Building JS docs
run: make js-doc
run: |
make js-doc
- name: Upload JS artifacts
uses: actions/upload-artifact@master
with:
name: js
path: docs/js/assets/1.0.0/
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 Down Expand Up @@ -73,6 +75,9 @@ jobs:
- 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 @@ -85,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 8625060

Please sign in to comment.