Skip to content

Commit

Permalink
tweaks to doc gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-1 committed Jan 10, 2025
1 parent 9ef53fc commit 3ce7c7c
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
push:
branches:
- main
- '*.*.*'
# only match branches that look like Minecraft versions
- "*.*"
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -53,21 +54,21 @@ jobs:
echo "</head>" >> branches.html
echo "<body>" >> branches.html
echo " <h1>Azalea Docs</h1>" >> branches.html
echo " <p>Welcome to the documentation for Azalea Crate.</p>" >> branches.html
echo " <p>Welcome to the documentation for Azalea.</p>" >> branches.html
echo " <h2>Available Versions</h2>" >> branches.html
echo " <ul>" >> branches.html
# Update branches.html with available versions
for VERSION in $VERSIONS; do
echo " <li><a href=\"https://azalea.matdoes.dev/$VERSION/index.html\">$VERSION</a></li>" >> branches.html
done
echo " <li><a href=\"https://azalea.matdoes.dev/$VERSION/index.html\">$VERSION</a></li>" >> branches.html
done
echo " </ul>" >> branches.html
echo "</body>" >> branches.html
echo "</html>" >> branches.html
echo " </ul>" >> branches.html
echo "</body>" >> branches.html
echo "</html>" >> branches.html
echo "branches.html generated successfully."
echo "branches.html generated successfully."
- name: Create Index Page
run: |
if [ ! -f index.html ]; then
Expand Down

0 comments on commit 3ce7c7c

Please sign in to comment.