marzipano/.gitea/workflows/deploy.yml
Denys Konovalov 4de399a7cf
All checks were successful
Marzipano Prod / Produktivumgebung (push) Successful in 2m11s
Reinit marzipano
2024-10-02 20:01:42 +02:00

35 lines
798 B
YAML

name: Marzipano Prod
on:
push:
branches: [main]
defaults:
run:
working-directory: /opt/runner/workdir/marzipano
jobs:
prod-build:
name: Produktivumgebung
if: gitea.repository == 'gcg/marzipano'
runs-on: act-runner-user
steps:
- name: Pull
run: |
git fetch --all
git reset --hard origin/main
- name: Build
run: |
rm -rf public
hugo --minify --gc --baseURL "https://vr.cantorgymnasium.de/"
- name: Deploy
run: |
cd public
rsync -azr --delete ./ /opt/data/webdata/marzipano/
- name: Notification
uses: actions/telegram-action@main
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}