Skip to content

Commit

Permalink
fix: build doc after release (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
julesbertrand committed Nov 6, 2023
1 parent 6fb7c14 commit e9b6b36
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 45 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/deploy_docs.yaml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,42 @@ jobs:
--repository-url https://europe-west1-python.pkg.dev/vertex-deployer-sandbox-3a8a/vertex-deployer \
--verbose \
dist/*
Deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
concurrency: Deploy-docs
needs: Release
env:
python-version: "3.10"
steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ env.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}

- name: Install poetry
run: make download-poetry

- name: Set up pip cache
uses: actions/cache@v3.2.4
with:
path: ~/.cache/pypoetry/virtualenvs
key: venv-${{ env.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}

- name: Set Poetry Path
run: |
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Install requirements
run: |
poetry run pip install --upgrade pip
poetry install --only docs
- name: Deploying MkDocs documentation
run: |
poetry run mkdocs build
poetry run mkdocs gh-deploy --force

0 comments on commit e9b6b36

Please sign in to comment.