diff options
| author | mat <git@matdoes.dev> | 2025-01-10 23:08:51 +0000 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2025-01-10 23:08:51 +0000 |
| commit | 3ce7c7cc5034155ffe05adf06234ea06ec22771e (patch) | |
| tree | 5d7cffa86733e52d246ad8b522ed7665b818c771 /.github/workflows/doc.yml | |
| parent | 9ef53fcf2b31ecc4452e77138332684566e856fd (diff) | |
| download | azalea-drasl-3ce7c7cc5034155ffe05adf06234ea06ec22771e.tar.xz | |
tweaks to doc gh action
Diffstat (limited to '.github/workflows/doc.yml')
| -rw-r--r-- | .github/workflows/doc.yml | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 737f176d..f2b577ef 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -4,7 +4,8 @@ on: push: branches: - main - - '*.*.*' + # only match branches that look like Minecraft versions + - "*.*" workflow_dispatch: permissions: @@ -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 |
