mirror of
https://github.com/privacyguides/privacyguides.org
synced 2024-12-03 16:33:31 +01:00
f2033c9c2f
Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md) - [Commits](https://github.com/actions/cache/compare/v3.0.1...v3.0.2) --- updated-dependencies: - dependency-name: actions/cache dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
47 lines
945 B
YAML
47 lines
945 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@v3.0.2
|
|
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@v3
|
|
with:
|
|
name: generated-site
|
|
path: site.tar
|