build: document publish scripts
This commit is contained in:
21
.github/workflows/docs.yaml
vendored
21
.github/workflows/docs.yaml
vendored
@@ -13,7 +13,10 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: Configure Git Credentials
|
- name: Configure Git Credentials
|
||||||
run: |
|
run: |
|
||||||
git config user.name github-actions[bot]
|
git config user.name github-actions[bot]
|
||||||
@@ -21,15 +24,15 @@ jobs:
|
|||||||
- uses: actions/setup-python@v5
|
- uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.x
|
python-version: 3.x
|
||||||
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
# - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||||
- uses: actions/cache@v4
|
# - uses: actions/cache@v4
|
||||||
with:
|
# with:
|
||||||
key: mkdocs-material-${{ env.cache_id }}
|
# key: mkdocs-material-${{ env.cache_id }}
|
||||||
path: .cache
|
# path: .cache
|
||||||
restore-keys: |
|
# restore-keys: |
|
||||||
mkdocs-material-
|
# mkdocs-material-
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install mkdocs-material
|
pip install mkdocs-material
|
||||||
pip install mike
|
pip install mike
|
||||||
- run: mike deploy --push --update-aliases ${{ github.event.inputs.version }} latest
|
- run: mike deploy --branch gh-pages --push --update-aliases ${{ github.event.inputs.version }} latest
|
||||||
|
|||||||
Reference in New Issue
Block a user