From eb6ca442b9a15e6715f920bc7251b662639e85c7 Mon Sep 17 00:00:00 2001 From: jgrogan Date: Sat, 22 Mar 2025 15:34:02 +0000 Subject: [PATCH] Initial attempt at site build --- .forgejo/workflows/demo.yaml | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/demo.yaml b/.forgejo/workflows/demo.yaml index 3bca3c8..14f83b9 100644 --- a/.forgejo/workflows/demo.yaml +++ b/.forgejo/workflows/demo.yaml @@ -11,8 +11,21 @@ jobs: uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v5 - - run: python3 -m venv .venv - - run: source .venv/bin/activate - - run: which python3 - - run: .venv/bin/python -m pip install git+https://git.jmsgrogan.com/jgrogan/dialann.git - + - 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 +r