mirror of
https://git.ari.lt/ari.lt/blog.ari.lt.git
synced 2025-02-04 09:39:25 +01:00
update @ Sat 2 Apr 21:27:19 EEST 2022
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
parent
41649d1d1a
commit
6168903029
3 changed files with 31 additions and 1 deletions
30
.github/workflows/build.yml
vendored
Normal file
30
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
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
|
|
@ -230,7 +230,7 @@ def new_blog(config: Dict) -> Tuple[int, Dict]:
|
||||||
"title": b64encode(us_title.encode()).decode(),
|
"title": b64encode(us_title.encode()).decode(),
|
||||||
"content": "",
|
"content": "",
|
||||||
"version": BLOG_VERSION,
|
"version": BLOG_VERSION,
|
||||||
"time": "Unknown",
|
"time": 0.0,
|
||||||
"keywords": "",
|
"keywords": "",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue