2024-10-02 20:01:42 +02:00
|
|
|
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: |
|
2024-10-02 23:03:01 +02:00
|
|
|
git restore .
|
2024-10-02 23:16:43 +02:00
|
|
|
git fetch --all
|
2024-10-02 20:01:42 +02:00
|
|
|
git reset --hard origin/main
|
2024-10-02 23:03:01 +02:00
|
|
|
git lfs pull
|
2024-10-02 20:01:42 +02:00
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
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 }}
|