Skip to content

Commit

Permalink
fixing doc deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
weinbe58 committed Oct 16, 2023
1 parent e4db62a commit edcacdc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
Expand Down Expand Up @@ -47,5 +49,7 @@ jobs:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GOOGLE_ANALYTICS_KEY: ${{ secrets.GOOGLE_ANALYTICS_KEY }}
run: |
pdm run mike deploy --force --push -F ${GITHUB_WORKSPACE}/docs/mkdocs.yml latest
pdm run mike set-default --push -F ${GITHUB_WORKSPACE}/docs/mkdocs.yml latest
python3 -m ensurepip
version=$(python3 -m pip freeze | grep -n "bloqade" | cut -d "=" -f3-)
git fetch origin gh-pages --depth=1
pdm run mike deploy --push --update-alias $version latest

0 comments on commit edcacdc

Please sign in to comment.