Skip to content

Commit

Permalink
Merge pull request #222 from earth-mover/docs/ci-tweak
Browse files Browse the repository at this point in the history
fix(docs): Update docs deployment ci
  • Loading branch information
digitaltopo authored Oct 14, 2024
2 parents c19d977 + d905536 commit 26390ae
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
name: deploy-docs
on:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: write
jobs:
deploy:
defaults:
run:
working-directory: ./docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -17,12 +21,18 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
cache: "poetry"
- name: Install Poetry
run: pipx install poetry
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
- name: Setup Cache
uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- run: mkdocs gh-deploy --force
- name: Install Dependencies
run: poetry install
- name: Deploy to gh-pages
run: ​poetry run mkdocs gh-deploy --force

0 comments on commit 26390ae

Please sign in to comment.