2022-04-01 21:29:18 +02:00
|
|
|
name: Build Website
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
env:
|
|
|
|
PYTHON_VERSION: 3.x
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build website
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Set up Python runtime
|
|
|
|
uses: actions/setup-python@v3
|
|
|
|
with:
|
|
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
|
|
|
|
|
|
- name: Cache files
|
2022-04-04 06:13:49 +02:00
|
|
|
uses: actions/cache@v3.0.1
|
2022-04-01 21:29:18 +02:00
|
|
|
with:
|
|
|
|
key: ${{ github.ref }}
|
|
|
|
path: .cache
|
|
|
|
|
|
|
|
- name: Install Python dependencies
|
|
|
|
run: |
|
2022-04-01 23:29:48 +02:00
|
|
|
pip install mkdocs
|
|
|
|
pip install mkdocs-material
|
2022-04-01 21:29:18 +02:00
|
|
|
|
|
|
|
- name: Build website
|
|
|
|
run: |
|
2022-04-01 23:29:48 +02:00
|
|
|
mkdocs build
|
2022-04-01 21:29:18 +02:00
|
|
|
mv .well-known site/
|
|
|
|
tar cvf site.tar site
|
|
|
|
mkdocs --version
|
|
|
|
|
|
|
|
- name: Package website
|
2022-04-11 06:14:26 +02:00
|
|
|
uses: actions/upload-artifact@v3
|
2022-04-01 21:29:18 +02:00
|
|
|
with:
|
|
|
|
name: generated-site
|
|
|
|
path: site.tar
|