personal-site/.forgejo/workflows/demo.yaml
jgrogan 4ecc61d7b9
Some checks failed
/ build (push) Failing after 2m32s
Fix build
2025-03-22 15:38:44 +00:00

30 lines
738 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: |
pwd
ls
cd src
.venv/bin/dialann --build_dir=../build
- name: Deploy site
run: |
pwd
cd ../build
tar -czvf ../personal_site.tar.gz *
cd ..
ssh $SERVER_ADDR "tar -C $SERVER_LOC -xz -f-" < personal_site.tar.gz