web/.forgejo/workflows/publish.yml

23 lines
809 B
YAML
Raw Permalink Normal View History

2024-12-03 15:26:11 +01:00
on: [push]
jobs:
2024-12-03 18:49:19 +01:00
publish:
runs-on: docker
2024-12-03 15:26:11 +01:00
steps:
2024-12-03 22:27:07 +01:00
- name: Install Pandoc
2024-12-03 22:35:26 +01:00
run: |
apt update
2024-12-03 22:38:05 +01:00
apt install -y pandoc
2024-12-04 12:09:31 +01:00
export DEBIAN_FRONTEND=noninteractive ; apt-get -qq update && apt-get install -y --quiet sshpass rsync
2024-12-03 18:49:19 +01:00
- name: Update website
2024-12-14 21:59:56 +01:00
if: ${{ secrets.RVBA != '' }}
2024-12-03 18:49:19 +01:00
run: |
2024-12-04 00:24:14 +01:00
git clone https://rvba:${{ secrets.RVBA }}@git.forgeons.org/rvba/web
2024-12-03 18:49:19 +01:00
cd web
2024-12-03 22:05:00 +01:00
git config user.email "ci@git.forgeons.org"
git config user.name "forgeons-web"
2024-12-03 22:07:16 +01:00
cd scripts
2024-12-05 12:32:45 +01:00
./web.sh batch
2024-12-03 18:49:19 +01:00
cd ..
2024-12-05 12:18:31 +01:00
export DEBIAN_FRONTEND=noninteractive
SSHPASS="${{ secrets.RVBA }}" rsync --rsh='sshpass -e ssh -oStrictHostKeyChecking=no' -av --delete dist/ web@forgeons.org:/home/web/forgeons