forked from PythonAberdeen/pythonaberdeen.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (27 loc) · 679 Bytes
/
Copy pathmain.yml
File metadata and controls
29 lines (27 loc) · 679 Bytes
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
name: Pelican site CI
on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- content
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: master
ref: master
- uses: actions/checkout@v3
with:
path: content
ref: content
- run: |
cd content
pip install -r requirements.txt
pelican -o ../master -s pelicanconf.py
cd ../master
git config user.name github-actions
git config user.email github-actions@github.com
git add . && git commit -m "Build $(date)" && git push