-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 871 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- uses: actions/setup-python@v5
with:
cache: pip
python-version-file: pyproject.toml
- name: Install uv
run: pip install uv
- name: Install dependencies
run: uv sync
- name: Install clean-css
run: npm install -g clean-css-cli
- name: Build site
run: uv run pelican content -s publishconf.py
- name: Clean up
run: rm -r output/theme/.webassets-cache
- uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: output