Skip to content

Commit

Permalink
Add and mainain latest link in doxygen deployment (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
archigup authored Dec 14, 2021
1 parent 2c3c873 commit f031e0f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doxygen-generation/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,15 @@ runs:
jq '.branches//=["main"]' > tmp.json
mv tmp.json _data/doc_config.json
- name: Add to release list
- name: Add to release list and update latest
if: inputs.add_release != 'false'
working-directory: ./doxygen_store/_data
working-directory: ./doxygen_store/
shell: bash
run: |
jq '.releases|=if index("${{ inputs.ref }}") then . else ["${{ inputs.ref }}"]+. end' doc_config.json > tmp.json
mv tmp.json doc_config.json
jq '.releases|=if index("${{ inputs.ref }}") then . else ["${{ inputs.ref }}"]+. end' _data/doc_config.json > tmp.json
mv tmp.json _data/doc_config.json
rm -f latest
ln -s "${{ inputs.ref }}" latest
- name: Commit new doxygen
working-directory: ./doxygen_store
Expand Down

0 comments on commit f031e0f

Please sign in to comment.