Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 3 to 5. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/actions/configure-pages/releases">actions/configure-pages's releases</a>.</em></p> <blockquote> <h2>v5.0.0</h2> <h1>Breaking Changes</h1> <p>⚠️ This version contains breaking changes! ⚠️</p> <ul> <li>When using the <a href="983d7736d9/action.yml (L7-L10)">input param <code>static_site_generator: next</code></a>: <ul> <li>Added support for Next.js >= 13.3.0</li> <li>Consequently, also dropped support for Next.js < 13.3.0</li> </ul> </li> </ul> <h1>Full Changelog</h1> <ul> <li>Attempt to auto-detect configuration files with varying file extensions <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/139">#139</a>)</li> <li>Convert errors into Actions-compatible logging with annotations <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/138">#138</a>)</li> <li>Bump <code>@actions/github</code> from 5.1.1 to 6.0.0 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/123">#123</a>)</li> <li>Bump the non-breaking-changes group with 2 updates <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/136">#136</a>)</li> <li>Update the Next.js configuration for v14 <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/137">#137</a>)</li> <li>Bump the non-breaking-changes group with 3 updates <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/132">#132</a>)</li> <li>Bump release-drafter/release-drafter from 5 to 6 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/133">#133</a>)</li> <li>Bump github/codeql-action from 2 to 3 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/127">#127</a>)</li> <li>Bump actions/checkout from 3 to 4 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/120">#120</a>)</li> <li>Bump actions/setup-node from 3 to 4 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/118">#118</a>)</li> <li>Bump the non-breaking-changes group with 1 update <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/131">#131</a>)</li> <li>Update Dependabot config to group non-breaking changes <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/130">#130</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/configure-pages/compare/v4.0.0...v5.0.0">all code changes</a> since previous release.</p> <h2>v4.0.0</h2> <h1>Changelog</h1> <ul> <li>Use a centralized <code>.node-version</code> file <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/117">#117</a>)</li> <li>Update action to node20 <a href="https://github.com/takost"><code>@takost</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/108">#108</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/configure-pages/compare/v3.0.7...v4.0.0">all code changes</a> since previous release.</p> <h2>v3.0.7</h2> <h1>Changelog</h1> <ul> <li>Update Actions workflows to use Node 20.x <a href="https://github.com/JamesMGreene"><code>@JamesMGreene</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/116">#116</a>)</li> <li>Bump eslint-plugin-github from 4.7.0 to 4.10.1 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/114">#114</a>)</li> <li>Bump word-wrap from 1.2.3 to 1.2.5 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/113">#113</a>)</li> <li>Bump jest from 29.5.0 to 29.7.0 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/112">#112</a>)</li> <li>Bump <code>@babel/traverse</code> from 7.21.3 to 7.23.5 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/110">#110</a>)</li> <li>Bump espree from 9.5.2 to 9.6.1 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/111">#111</a>)</li> <li>Bump eslint from 8.38.0 to 8.40.0 <a href="https://github.com/dependabot"><code>@dependabot</code></a> (<a href="https://redirect.github.com/actions/configure-pages/issues/93">#93</a>)</li> </ul> <p>See details of <a href="https://github.com/actions/configure-pages/compare/v3.0.6...v3.0.7">all code changes</a> since previous release.</p> <h2>v3.0.6</h2> <h1>Changelog</h1> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="983d7736d9"><code>983d773</code></a> Merge pull request <a href="https://redirect.github.com/actions/configure-pages/issues/139">#139</a> from actions/config-auto-detect</li> <li><a href="9cf6e24f74"><code>9cf6e24</code></a> Tweak comment</li> <li><a href="f304bd89be"><code>f304bd8</code></a> Update distributables</li> <li><a href="215cd51eb0"><code>215cd51</code></a> Attempt to detect existing config files matching the expected basename plus o...</li> <li><a href="e9382ac9ad"><code>e9382ac</code></a> Front-load the file extension warning</li> <li><a href="7781abd34b"><code>7781abd</code></a> Merge pull request <a href="https://redirect.github.com/actions/configure-pages/issues/138">#138</a> from actions/error-utils</li> <li><a href="fc47e3c838"><code>fc47e3c</code></a> Update distributables</li> <li><a href="9c9f8a266f"><code>9c9f8a2</code></a> Update tests to use the Octokit RequestError class</li> <li><a href="9a4705d653"><code>9a4705d</code></a> Update distributables</li> <li><a href="f6ded38287"><code>f6ded38</code></a> Fix syntax error and formatting</li> <li>Additional commits viewable in <a href="https://github.com/actions/configure-pages/compare/v3...v5">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
# Inspired from https://github.com/nix-community/nix-on-droid/blob/039379abeee67144d4094d80bbdaf183fb2eabe5/.github/workflows/docs.yml
|
|
name: Deploy docs
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
|
concurrency:
|
|
group: "pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
# Single deploy job since we're just deploying
|
|
deploy:
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v30
|
|
|
|
- name: Setup Caching
|
|
uses: cachix/cachix-action@v14
|
|
with:
|
|
name: selfhostblocks
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- name: Build docs
|
|
run: |
|
|
nix \
|
|
--print-build-logs \
|
|
--option keep-going true \
|
|
--show-trace \
|
|
build .#manualHtml
|
|
|
|
# see https://github.com/actions/deploy-pages/issues/58
|
|
cp \
|
|
--recursive \
|
|
--dereference \
|
|
--no-preserve=mode,ownership \
|
|
result/share/doc/selfhostblocks \
|
|
public
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: ./public
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|