Skip to content

Commit

Permalink
github: Updated the website deployment actions to fix an issue that's…
Browse files Browse the repository at this point in the history
… cropped up with a recent update to `ubuntu-latest`
  • Loading branch information
dragonmux committed Dec 28, 2024
1 parent 5e8ea86 commit 76ca750
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,40 @@ jobs:
name: 'build gh-pages'
runs-on: ubuntu-latest
steps:
# Get a Python suitable for our usage
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.11'
# Make sure the GHA environment is sane
- name: Setup Environment
shell: bash
env:
WORKSPACE: ${{ github.workspace }}
run: |
echo "$HOME/.local/bin:$PATH" >> $GITHUB_PATH
echo "GITHUB_WORKSPACE=\"`pwd`\"" >> $GITHUB_ENV
# Grab the website repo
- name: Checkout Black Magic Debug Website Repo
uses: actions/checkout@v3
with:
lfs: true
submodules: true
# Update the host environment and make a venv for building the site
- name: Setup Sphinx
shell: bash
run: |
sudo apt-get update
sudo apt-get install graphviz
sudo pip3 install -U pip setuptools wheel
pip3 install --user -r requirements.txt
sudo apt-get install graphviz python3-virtualenv
virtualenv .env
. .env/bin/activate
pip3 install -U pip setuptools wheel
pip3 install -r requirements.txt
# Now build the website
- name: Build
shell: bash
run: sphinx-build -b html . build
run: .env/bin/sphinx-build -b html . build
# Deploy the resulting files
- name: Deploy
if: success()
uses: crazy-max/ghaction-github-pages@v3
Expand Down

0 comments on commit 76ca750

Please sign in to comment.