mirror of
https://github.com/jj-vcs/jj.git
synced 2026-07-08 18:13:08 +08:00
Bumps the github-dependencies group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [taiki-e/install-action](https://github.com/taiki-e/install-action), [EmbarkStudios/cargo-deny-action](https://github.com/embarkstudios/cargo-deny-action) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/checkout` from 6.0.2 to 6.0.3 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](de0fac2e45...df4cb1c069) Updates `taiki-e/install-action` from 2.79.7 to 2.81.2 - [Release notes](https://github.com/taiki-e/install-action/releases) - [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md) - [Commits](d9be7d8cda...6887963ccf) Updates `EmbarkStudios/cargo-deny-action` from 2.0.19 to 2.0.20 - [Release notes](https://github.com/embarkstudios/cargo-deny-action/releases) - [Commits](a531616d8c...bb137d7af7) Updates `github/codeql-action` from 4.36.0 to 4.36.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](7211b7c807...87557b9c84) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 6.0.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: taiki-e/install-action dependency-version: 2.81.2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies - dependency-name: EmbarkStudios/cargo-deny-action dependency-version: 2.0.20 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies - dependency-name: github/codeql-action dependency-version: 4.36.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
78 lines
2.7 KiB
YAML
78 lines
2.7 KiB
YAML
name: website
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
prerelease-docs-build-deploy:
|
|
# IMPORTANT: this workflow also functions as a test for `docs-deploy-website-latest-release` in
|
|
# releases.yml. Any fixes here should probably be duplicated there.
|
|
permissions:
|
|
contents: write
|
|
if: github.repository_owner == 'jj-vcs' # Stops this job from running on forks
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-24.04]
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
|
|
with:
|
|
# `.github/scripts/docs-build-deploy` will need to `git push` to the docs branch
|
|
persist-credentials: true
|
|
- run: "git fetch origin gh-pages --depth=1"
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
|
|
with:
|
|
python-version: 3.11
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b
|
|
with:
|
|
version: "0.5.1"
|
|
- name: Install dependencies, compile and deploy docs
|
|
run: |
|
|
git config user.name 'jj-docs[bot]'
|
|
git config user.email 'jj-docs[bot]@users.noreply.github.io'
|
|
export MKDOCS_SITE_NAME="Jujutsu docs (prerelease)"
|
|
export MKDOCS_PRIMARY_COLOR="blue grey"
|
|
.github/scripts/docs-build-deploy prerelease --push
|
|
- name: "Show `git diff --stat`"
|
|
run: git diff --stat gh-pages^ gh-pages || echo "(No diffs)"
|
|
|
|
starlight-docs-build-deploy:
|
|
# Deploy Starlight-based docs to /starlight for comparison with MkDocs version
|
|
needs: prerelease-docs-build-deploy
|
|
permissions:
|
|
contents: write
|
|
if: github.repository_owner == 'jj-vcs' # Stops this job from running on forks
|
|
runs-on: ubuntu-24.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10
|
|
with:
|
|
persist-credentials: true
|
|
- run: "git fetch origin gh-pages --depth=1"
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
|
|
with:
|
|
node-version: '22'
|
|
- name: Install dependencies
|
|
working-directory: web/docs
|
|
run: npm ci
|
|
- name: Build Starlight docs
|
|
working-directory: web/docs
|
|
run: npm run build -- --base /starlight/
|
|
- name: Deploy to gh-pages/starlight
|
|
run: |
|
|
git config user.name 'jj-docs[bot]'
|
|
git config user.email 'jj-docs[bot]@users.noreply.github.io'
|
|
git checkout gh-pages
|
|
rm -rf starlight
|
|
mv web/docs/dist starlight
|
|
git add starlight
|
|
git commit -m "Deploy Starlight docs to /starlight" || echo "No changes to commit"
|
|
git push origin gh-pages
|