mirror of
https://github.com/privacyguides/privacyguides.org
synced 2024-11-11 05:33:39 +01:00
47 lines
941 B
YAML
47 lines
941 B
YAML
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
|
|
uses: actions/cache@v2
|
|
with:
|
|
key: ${{ github.ref }}
|
|
path: .cache
|
|
|
|
- name: Install Python dependencies
|
|
run: |
|
|
pip install mkdocs
|
|
pip install mkdocs-material
|
|
|
|
- name: Build website
|
|
run: |
|
|
mkdocs build
|
|
mv .well-known site/
|
|
tar cvf site.tar site
|
|
mkdocs --version
|
|
|
|
- name: Package website
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: generated-site
|
|
path: site.tar
|