From 2d5acc964fe228126e9d613fe2a0ea8ee2bdb7b5 Mon Sep 17 00:00:00 2001 From: milovann Date: Wed, 4 Dec 2024 12:06:03 +0100 Subject: [PATCH] workflow --- .forgejo/workflows/publish.yml | 5 +++-- pages/index.md | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/publish.yml b/.forgejo/workflows/publish.yml index 246d78d..e5b50f0 100644 --- a/.forgejo/workflows/publish.yml +++ b/.forgejo/workflows/publish.yml @@ -36,11 +36,12 @@ jobs: echo "Script" ./web.sh "$file" done + cd .. git add . if git diff-index --quiet HEAD ; then echo Nothing changed, not pushing else - git commit -m 'publish' -a - git push + export DEBIAN_FRONTEND=noninteractive ; apt-get -qq update && apt-get install -y --quiet sshpass rsync + SSHPASS="${{ secrets.RVBA }}" rsync --rsh='sshpass -e ssh -oStrictHostKeyChecking=no' -av dist/ root@forgeons.org:/var/www/forgeons.org fi diff --git a/pages/index.md b/pages/index.md index 981faa8..eef5a92 100644 --- a/pages/index.md +++ b/pages/index.md @@ -1,4 +1,4 @@ # Forgeons ! -This is not a test !!!! +This is not a test !