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 90362ce commit 7b5c5a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 64 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,31 +61,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
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: Build docs
run: |
mkdocs build
- name: Deploy docs
run: |
mkdocs gh-deploy
# deploy-docs:
# name: Deploy docs
# runs-on: ubuntu-latest
# steps:
# - name: Checkout main
# uses: actions/checkout@v2

# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# CONFIG_FILE: navix/mkdocs.yml
# EXTRA_PACKAGES: build-base
# REQUIREMENTS: navix/requirements.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

38 changes: 0 additions & 38 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,41 +84,3 @@ jobs:
exit 1
fi
echo "Tag $NAVIX_VERSION will be the deployed version."
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"
- 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

0 comments on commit 7b5c5a1

Please sign in to comment.