Warning from Github Actions for the Github workflow

Warning: Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/upload-artifact@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: Deprecation of Node 20 on GitHub Actions runners - GitHub Changelog

I am acutely aware of this.

There’s some history here related to the the ability to include hidden (dot) files and directories in the published artifacts. Without going into the details, we will change our example workflow once this is resolved and tested:

https://github.com/actions/upload-pages-artifact/issues/143

The maintainers added the v5 tag without updating the issue above. I’ve updated and tested the example workflow. Note that hidden files and directories were included with v3, then excluded with v4. With v5 you can configure the action to include hidden files and directories by setting include-hidden-files to true:

      - name: Upload artifact
        uses: actions/upload-pages-artifact@v5
        with:
          include-hidden-files: true
          path: ./public

Note that .git and .github are excluded regardless of the include-hidden-files setting.