2023-08-26 02:52:47 +00:00
|
|
|
name: website
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
prerelease-docs-build-deploy:
|
2025-01-10 21:45:05 +00:00
|
|
|
if: github.repository_owner == 'jj-vcs' # Stops this job from running on forks
|
2023-08-26 02:52:47 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2025-01-06 23:12:36 +00:00
|
|
|
os: [ubuntu-24.04]
|
2023-08-26 02:52:47 +00:00
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2024-10-23 15:56:10 +00:00
|
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
2023-08-26 02:52:47 +00:00
|
|
|
- run: "git fetch origin gh-pages --depth=1"
|
2025-01-29 15:08:35 +00:00
|
|
|
- uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38
|
2023-08-26 02:52:47 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.11
|
2024-11-09 21:32:29 +00:00
|
|
|
- name: Install uv
|
2025-01-30 15:32:32 +00:00
|
|
|
uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355
|
2023-08-26 02:52:47 +00:00
|
|
|
with:
|
2024-11-09 21:32:29 +00:00
|
|
|
version: "0.5.1"
|
2023-08-26 02:52:47 +00:00
|
|
|
- name: Install dependencies, compile and deploy docs
|
|
|
|
run: |
|
2023-09-16 01:33:47 +00:00
|
|
|
git config user.name 'jj-docs[bot]'
|
|
|
|
git config user.email 'jj-docs[bot]@users.noreply.github.io'
|
2024-12-17 19:01:42 +00:00
|
|
|
.github/scripts/docs-build-deploy 'https://jj-vcs.github.io/jj' prerelease --push
|
2023-08-26 02:52:47 +00:00
|
|
|
- name: "Show `git diff --stat`"
|
|
|
|
run: git diff --stat gh-pages^ gh-pages || echo "(No diffs)"
|