wiki/.gitea/workflows/build.yaml
Sthope 407bd90b0d
Some checks failed
Build / build (push) Failing after 5s
continuous-integration/drone/push Build is passing
Update .gitea/workflows/build.yaml
2023-08-13 03:39:07 +02:00

38 lines
848 B
YAML

name: Build
on:
- push
- pull_request
# schedule:
# - cron: '0 21 * * 0'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.6 # 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