From 67cec08335f5a4a491f4eb76f53b1ec61116c85c Mon Sep 17 00:00:00 2001 From: Sthope Date: Sun, 13 Aug 2023 03:32:16 +0200 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 38 +++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index ab9424f..4e26171 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -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 \ No newline at end of file + 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 \ No newline at end of file