Skip to content

Commit b645fba

Browse files
committed
Switch to github actions.
1 parent e7b62d7 commit b645fba

3 files changed

Lines changed: 39 additions & 23 deletions

File tree

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

github_deploy_key_moorepants_eng122.enc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)