Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
birdybro committed May 30, 2024
1 parent ffb8db0 commit 642c1d7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,35 +5,37 @@ on:
- main

env:
PYTHON_VERSION: 3.x
PYTHON_VERSION: 3.8

jobs:
deploy:
name: Build documentation
runs-on: ubuntu-latest
steps:

- name: Checkout main branch
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Download videos branch and unzip
run: |
wget https://codeload.github.com/MiSTer-devel/MkDocs_MiSTer/zip/refs/heads/videos
unzip videos
cd MkDocs_MiSTer-videos/
cp -r docs ../
wget https://codeload.github.com/MiSTer-devel/MkDocs_MiSTer/zip/refs/heads/videos || exit 1
unzip videos || exit 1
cd MkDocs_MiSTer-videos/ || exit 1
cp -r docs ../ || exit 1
- name: Setup Python runtime
uses: actions/setup-python@v3
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Cache Python dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python Dependencies
run: |
pip install -r requirements.txt
- name: Deploy Documentation
run: |
mkdocs gh-deploy --force
Expand Down

0 comments on commit 642c1d7

Please sign in to comment.