Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
rlanzafame committed Oct 13, 2024
1 parent 2ca1965 commit 618e9e5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 14 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build Website

on:
push:
branches: main
pull_request:
branches: main

jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python-version: [3.13]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pelican pyyaml beautifulsoup4 ghp-import
git clone --depth=1 --single-branch --branch main https://github.com/rlanzafame/pelican-alchemy.git
git clone --depth=1 https://github.com/getpelican/pelican-plugins.git
- name: Build the website
run: |
pelican -D -v --fatal errors -s publishconf.py -o output
- name: Deploy the website
if: ${{ github.event_name == 'push' }}
run: |
git fetch origin
git checkout deploy
git pull origin deploy
git config --global user.name "Github Actions"
git config --global user.email rlanzafame@users.noreply.github.com
git remote add deploy "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/rlanzafame/rlanzafame.github.io.git"
ghp-import -r deploy -b main -m "Updated via Github Actions [skip ci]" -p output
14 changes: 0 additions & 14 deletions .github/workflows/pelican.yml

This file was deleted.

0 comments on commit 618e9e5

Please sign in to comment.