21 lines
573 B
YAML
21 lines
573 B
YAML
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v4
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m venv .venv
|
|
.venv/bin/python -m pip install git+https://git.jmsgrogan.com/jgrogan/dialann.git
|
|
- name: Build site
|
|
run: .venv/bin/dialann --source_dir src --build_dir build
|
|
- name: Deploy site
|
|
run: rsync -aizv --delete build/ $1:/var/www/jmsgrogan/html/
|