-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 949 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
41
42
43
44
---
name: Pelican deployment
env:
PELICAN_CONTENT_DIR: content
PELICAN_BUILD_DIR: build
PELICAN_CONFIG_FILE: pelicanconf.py
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Build with pelican
run: |
pelican $PELICAN_CONTENT_DIR -o $PELICAN_BUILD_DIR -s $PELICAN_CONFIG_FILE
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: build
branch: gh-pages