mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 17:49:24 +01:00
6168903029
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
30 lines
704 B
YAML
30 lines
704 B
YAML
name: Test if the site builds
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.8]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install requirements
|
|
run: |
|
|
pip install -r requirements.txt
|
|
|
|
- name: Build static site
|
|
run: |
|
|
python3 scripts/blog static
|