web/.forgejo/workflows/publish.yml
milovann d70071ea34
All checks were successful
/ publish (push) Successful in 55s
up
2024-12-05 12:32:45 +01:00

28 lines
968 B
YAML

on: [push]
jobs:
publish:
runs-on: docker
steps:
- name: Install Pandoc
run: |
apt update
apt install -y pandoc
export DEBIAN_FRONTEND=noninteractive ; apt-get -qq update && apt-get install -y --quiet sshpass rsync
- name: Update website
if: ${{ secrets.WEBTOKEN != '' }}
run: |
echo "Cloning"
echo ${{ secrets.WEBTOKEN }}
git clone https://rvba:${{ secrets.RVBA }}@git.forgeons.org/rvba/web
echo "Cd"
cd web
echo "Config"
git config user.email "ci@git.forgeons.org"
git config user.name "forgeons-web"
cd scripts
echo "Script"
./web.sh batch
cd ..
echo "Rsync"
export DEBIAN_FRONTEND=noninteractive
SSHPASS="${{ secrets.RVBA }}" rsync --rsh='sshpass -e ssh -oStrictHostKeyChecking=no' -av --delete dist/ web@forgeons.org:/home/web/forgeons