2023-08-26 02:52:47 +00:00
|
|
|
name: website
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
prerelease-docs-build-deploy:
|
2024-10-30 11:43:18 +00:00
|
|
|
if: github.repository_owner == 'martinvonz' # Stops this job from running on forks
|
2023-08-26 02:52:47 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
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"
|
2024-10-24 15:27:46 +00:00
|
|
|
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b
|
2023-08-26 02:52:47 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.11
|
2024-11-09 21:32:29 +00:00
|
|
|
- name: Install uv
|
2024-11-20 15:30:16 +00:00
|
|
|
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d
|
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-05-23 04:13:03 +00:00
|
|
|
.github/scripts/docs-build-deploy 'https://martinvonz.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)"
|