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' # - cron: '0 21 * * 0'
jobs: jobs:
build: build:
runs-on: ubuntu-22.04 runs-on: ubuntu-latest
steps: steps:
- name: Install dependencies - name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2 uses: actions/setup-python@v2
# with: with:
# python-version: 3.8.17 python-version: 3.8 # Adjust to the desired Python version
- name: Install requirements
run: pip install -r requirements.txt - name: Install dependencies
- name: Build documentation run: |
run: mkdocs build python -m pip install --upgrade pip
- name: Copy documentation pip install -U -r requirements.txt
run: cp -r site/ /site
- name: Set permissions - name: Build and deploy
run: chmod -R 777 /site 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