-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 970 Bytes
/
publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Generate and publish site
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
pip install -U pip
pip install poetry
poetry install
env:
POETRY_VIRTUALENVS_CREATE: false
- name: Build the site
run: python kipper/main.py output standalone dev/kip_mentions.csv site_files/index.html
- name: Push to site branch
uses: seanmiddleditch/gha-publish-to-git@master
with:
branch: gh-pages
github_token: '${{ secrets.GITHUB_TOKEN }}'
github_pat: '${{ secrets.GH_PAT }}'
source_folder: site_files
if: success() && github.event == 'push'