2023-08-26 02:52:47 +00:00
|
|
|
name: website
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
prerelease-docs-build-deploy:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
|
|
|
steps:
|
2024-06-13 15:50:19 +00:00
|
|
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
|
2023-08-26 02:52:47 +00:00
|
|
|
- run: "git fetch origin gh-pages --depth=1"
|
2024-03-26 16:00:26 +00:00
|
|
|
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d
|
2023-08-26 02:52:47 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.11
|
|
|
|
- name: Install poetry
|
2024-01-16 04:10:50 +00:00
|
|
|
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
|
2023-08-26 02:52:47 +00:00
|
|
|
with:
|
|
|
|
poetry-version: latest
|
|
|
|
- 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)"
|