Skip to content

Commit

Permalink
try manual deploy ci
Browse files Browse the repository at this point in the history
  • Loading branch information
peersky committed Sep 29, 2024
1 parent 1bed692 commit 578a8ee
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ jobs:
- name: Copy docs
run: ./copy-contract-docs.sh
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
# Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
run: ./deploy-docs.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CUSTOM_DOMAIN: docs.rankify.it
Expand Down
19 changes: 19 additions & 0 deletions deploy-docs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

# Exit immediately if a command exits with a non-zero status
set -e

# Initialize Python virtual environment
python3 -m venv .venv

# Source the virtual environment
source .venv/bin/activate

# Install dependencies from requirements.txt
pip install -r requirements.txt

# Run mkdocs gh-deploy
mkdocs gh-deploy

# Deactivate the virtual environment
deactivate

0 comments on commit 578a8ee

Please sign in to comment.