2020-09-19 19:55:21 +02:00
|
|
|
name: Pelican Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: true
|
2020-09-19 21:35:02 +02:00
|
|
|
- name: Create requirements.txt
|
|
|
|
uses: 1arp/create-a-file-action@0.2
|
|
|
|
with:
|
|
|
|
file: requirements.txt
|
|
|
|
content: |
|
|
|
|
pelican
|
|
|
|
markdown
|
2020-09-19 20:14:52 +02:00
|
|
|
- name: Build and Publish
|
2020-09-19 21:35:02 +02:00
|
|
|
uses: iranzo/gh-pages-pelican-action@1.0.1
|
2020-09-19 19:55:21 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
2020-09-19 21:36:51 +02:00
|
|
|
SOURCE_FOLDER: docs/content
|
|
|
|
PELICAN_CONFIG_FILE: docs/publishconf.py
|