Skip to content

Commit

Permalink
fix requirements for gh-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
epignatelli committed Jul 8, 2024
1 parent 6cfd085 commit 90362ce
Showing 1 changed file with 29 additions and 15 deletions.
44 changes: 29 additions & 15 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,39 @@ jobs:
echo "Tag $NAVIX_VERSION will be the deployed version."
deploy-docs:
name: Deploy docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Setup navix
run: |
pip install . -v
pip install -r ./docs/requirements.txt
- name: bypass mkdocs-deploy-gh bug
run: |
echo "" > fake_req.txt
- run: pip install --upgrade pip && pip install -r docs/requirements.txt
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Publish docs
run: mkdocs gh-deploy

# deploy-docs:
# name: Deploy docs
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Setup navix
# run: |
# pip install . -v
# pip install -r ./docs/requirements.txt

# - name: bypass mkdocs-deploy-gh bug
# run: |
# echo "" > fake_req.txt

- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONFIG_FILE: ./mkdocs.yml
REQUIREMENTS: ./fake_req.txt
# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CONFIG_FILE: ./mkdocs.yml
# REQUIREMENTS: ./fake_req.txt

0 comments on commit 90362ce

Please sign in to comment.