Skip to content

Merge branch 'master' of https://github.com/flothesof/PelicanBlog #28

Merge branch 'master' of https://github.com/flothesof/PelicanBlog

Merge branch 'master' of https://github.com/flothesof/PelicanBlog #28

name: Python Build and Deploy a Pelican Blog
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate HTML content
run: |
make publish
- name: Pushes to blog repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
with:
source-directory: 'output'
destination-github-username: 'flothesof'
destination-repository-name: 'flothesof.github.io'
user-email: gh-actions@github.com
target-branch: master