This commit is contained in:
parent
4ecc61d7b9
commit
34c7b95ba1
8 changed files with 109 additions and 11 deletions
21
.forgejo/workflows/deploy.yaml
Normal file
21
.forgejo/workflows/deploy.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
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/
|
Loading…
Add table
Add a link
Reference in a new issue