Commit 9f7f651 for jssip.net

commit 9f7f651487895bbd2be5407e9a6439a693cb5fdf
Author: José Luis Millán <jmillan@aliax.net>
Date:   Wed Dec 2 12:27:15 2026 +0100

    GH actions

diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
index 5864368..1155d66 100644
--- a/.github/workflows/docs.yaml
+++ b/.github/workflows/docs.yaml
@@ -25,48 +25,73 @@ jobs:
   deploy:
     environment:
       name: github-pages
-      url: ${{ steps.deployment.outputs.page_url }}
+      url: ${{ steps.deployment_1.outputs.page_url || steps.deployment_2.outputs.page_url || steps.deployment_3.outputs.page_url }}

     runs-on: ubuntu-latest

     steps:
       - name: Checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6
         with:
           fetch-depth: 2

       - name: Node.js
-        uses: actions/setup-node@v4
+        uses: actions/setup-node@v6
         with:
-          node-version: 24
+          node-version: 26

+      # NOTE: Only on `push`, since on `workflow_dispatch` there is no previous
+      # commit to compare the version against.
       - name: Check if version has been updated
         id: versionCheck
+        if: github.event_name == 'push'
         uses: EndBug/version-check@v2

-      - name: Log when version has changed
-        if: steps.versionCheck.outputs.changed == 'true'
-        run: 'echo "Version changed, new version: ${{ steps.versionCheck.outputs.version }} (${{ steps.versionCheck.outputs.type }})"'
+      # Deploy when a release pushes a new version, and always when the
+      # workflow is run manually, so that the docs can be re-deployed without
+      # waiting for the next release.
+      - name: Decide whether to deploy
+        id: decide
+        run: echo "deploy=${{ github.event_name == 'workflow_dispatch' || steps.versionCheck.outputs.changed == 'true' }}" >> "$GITHUB_OUTPUT"

-      - name: Log when version has not changed
-        if: steps.versionCheck.outputs.changed == 'false'
-        run: 'echo "Version did not change"'
+      - name: Log the decision
+        run: 'echo "deploy:${{ steps.decide.outputs.deploy }} event:${{ github.event_name }} version:${{ steps.versionCheck.outputs.version }} changed:${{ steps.versionCheck.outputs.changed }}"'

       - name: npm ci
-        if: steps.versionCheck.outputs.changed == 'true'
+        if: steps.decide.outputs.deploy == 'true'
         run: npm ci --foreground-scripts

       - name: npm run docs
-        if: steps.versionCheck.outputs.changed == 'true'
+        if: steps.decide.outputs.deploy == 'true'
         run: npm run docs

       - name: Upload docs
-        if: steps.versionCheck.outputs.changed == 'true'
-        uses: actions/upload-pages-artifact@v3
+        if: steps.decide.outputs.deploy == 'true'
+        uses: actions/upload-pages-artifact@v4
         with:
           path: docs/

-      - name: Deploy docs to GitHub Pages
-        if: steps.versionCheck.outputs.changed == 'true'
-        id: deployment
-        uses: actions/deploy-pages@v4
+      - name: Deploy docs to GitHub Pages (attempt 1)
+        id: deployment_1
+        if: steps.decide.outputs.deploy == 'true'
+        continue-on-error: true
+        uses: actions/deploy-pages@v5
+
+      - name: Wait before retrying deploy
+        if: steps.decide.outputs.deploy == 'true' && steps.deployment_1.outcome == 'failure'
+        run: sleep 15
+
+      - name: Deploy docs to GitHub Pages (attempt 2)
+        id: deployment_2
+        if: steps.decide.outputs.deploy == 'true' && steps.deployment_1.outcome == 'failure'
+        continue-on-error: true
+        uses: actions/deploy-pages@v5
+
+      - name: Wait before retrying deploy
+        if: steps.decide.outputs.deploy == 'true' && steps.deployment_2.outcome == 'failure'
+        run: sleep 45
+
+      - name: Deploy docs to GitHub Pages (attempt 3)
+        id: deployment_3
+        if: steps.decide.outputs.deploy == 'true' && steps.deployment_2.outcome == 'failure'
+        uses: actions/deploy-pages@v5
diff --git a/.github/workflows/jssip.yaml b/.github/workflows/jssip.yaml
index 43d21ab..02ffa63 100644
--- a/.github/workflows/jssip.yaml
+++ b/.github/workflows/jssip.yaml
@@ -34,15 +34,15 @@ jobs:

     steps:
       - name: Checkout
-        uses: actions/checkout@v4
+        uses: actions/checkout@v6

       - name: Node.js
-        uses: actions/setup-node@v4
+        uses: actions/setup-node@v6
         with:
           node-version: ${{ matrix.ci.node }}

       - name: Configure cache
-        uses: actions/cache@v3
+        uses: actions/cache@v4
         with:
           path: |
             ~/.npm