Update .gitea/workflows/build.yaml
Some checks failed
continuous-integration/drone/push Build is passing
Build / build (push) Failing after 45s

This commit is contained in:
Sthope 2023-08-13 03:32:16 +02:00
parent 174a0cd462
commit 67cec08335

View File

@ -6,17 +6,31 @@ on:
# - cron: '0 21 * * 0'
jobs:
build:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Install dependencies
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
# with:
# python-version: 3.8.17
- name: Install requirements
run: pip install -r requirements.txt
- name: Build documentation
run: mkdocs build
- name: Copy documentation
run: cp -r site/ /site
- name: Set permissions
run: chmod -R 777 /site
with:
python-version: 3.8 # Adjust to the desired Python version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U -r requirements.txt
- name: Build and deploy
run: |
pip install mkdocs-material==7.1.9
mkdocs build
cp -r site/ $GITHUB_WORKSPACE/site
chmod -R 777 $GITHUB_WORKSPACE/site
- name: Upload built site
uses: actions/upload-artifact@v2
with:
name: built-site
path: $GITHUB_WORKSPACE/site