-
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 996 Bytes
/
pelican.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
35
36
37
38
39
40
name: Deploy
on:
# Trigger the workflow on push on main branch,
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10.8"
- name: Set up poetry
uses: Gr1N/setup-poetry@v9
- name: Install dependencies
run: poetry install --no-interaction
- name: Run tests
run: poetry run make lint test
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Build
run: poetry run pelican content
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v4
with:
target_branch: gh-pages
build_dir: output
fqdn: studio.kalavera.xyz
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}