File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Pelican site CI
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+ pull_request :
8+ branches :
9+ - master
10+
11+ jobs :
12+ build :
13+
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - uses : actions/checkout@v6
18+ - name : " Set up Python 3.11"
19+ uses : actions/setup-python@v6
20+ with :
21+ python-version : " 3.13"
22+ - name : Install dependencies
23+ run : |
24+ python -m pip install --upgrade pip
25+ python -m pip install pelican pyyaml beautifulsoup4 ghp-import
26+ git clone --depth=1 --single-branch --branch mechmotum https://github.com/mechmotum/pelican-alchemy.git
27+ git clone --depth=1 https://github.com/getpelican/pelican-plugins.git
28+ - name : Build the website
29+ run : |
30+ pelican -D -v --fatal errors -s publishconf.py -o output
31+ git fetch origin --tags
32+ ls output/
33+ - name : Deploy the website
34+ if : ${{ github.event_name == 'push' }}
35+ run : |
36+ git config --global user.name "Github Actions"
37+ git config --global user.email mechmotum@users.noreply.github.com
38+ git remote add deploy "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/moorepants/me41055.git"
39+ ghp-import --no-history -r deploy -b gh-pages -m "Updated via Github Actions" -p output
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments