Denys Konovalov
3921de4a6c
All checks were successful
Marzipano Prod / Produktivumgebung (push) Successful in 33s
36 lines
821 B
YAML
36 lines
821 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 restore .
|
|
git fetch --all
|
|
git reset --hard origin/main
|
|
git lfs pull
|
|
- 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 }}
|