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-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
|
|
|
|
- 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)"
|