Skip to content

Commit

Permalink
Added latest button
Browse files Browse the repository at this point in the history
  • Loading branch information
Happyrobot33 committed Dec 12, 2024
1 parent d46df32 commit fae1e71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,18 @@ jobs:
runs-on: ubuntu-latest
outputs:
releaseTags: ${{ steps.get_latest_release.outputs.data }}
latestTag: ${{ steps.get_latest_release.outputs.latest }}
steps:
- uses: actions/checkout@v3 # check out this repo
with:
fetch-depth: 0 # fetch all history

- name: Get all tags for upcoming matrix
id: get_latest_release
run: echo "DATA=[\"1.0.1\", \"1.1.1\", \"OpenFlight-1.7.9\"]" >> "$GITHUB_OUTPUT"
#run: echo "DATA=[\"$(echo $(git tag) | sed 's/ /\", \"/g')\"]" >> "$GITHUB_OUTPUT"
#echo "DATA=[\"$(echo $(git tag --sort=-creatordate ) | sed 's/ /\", \"/g')\"]" >> "$GITHUB_OUTPUT"
run: |
echo "DATA=[\"1.0.1\", \"1.1.1\", \"OpenFlight-1.7.9\"]" >> "$GITHUB_OUTPUT"
echo "LATEST=$(echo $(git tag -l --sort=-creatordate | head -n 1 )" >> "$GITHUB_OUTPUT"
DocMatrix:
needs: InitialSetup
Expand Down Expand Up @@ -108,6 +111,7 @@ jobs:

- name: Add to main website
run: |
echo "* [Latest Scripting Documentation](${{ needs.InitialSetup.outputs.latest }}/Doxygen/html/index.html \":ignore title\")" >> ./docs/_sidebar.md
for tag in ${{ join(fromJSON(needs.InitialSetup.outputs.releaseTags), ' ') }}
do
echo " * [$tag]($tag/Doxygen/html/index.html \":ignore title\")" >> ./docs/_sidebar.md
Expand Down
1 change: 0 additions & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,3 @@
* [Flight Physics](FlightPhysics.md)
* [Themes](Themes.md)
* [Adding Avatars](ADDINGAVATARS.md)
* [Scripting Reference](Doxygen/html/index.html ":ignore title")

0 comments on commit fae1e71

Please sign in to comment.