Reinit marzipano
All checks were successful
Marzipano Prod / Produktivumgebung (push) Successful in 2m11s
All checks were successful
Marzipano Prod / Produktivumgebung (push) Successful in 2m11s
This commit is contained in:
34
.gitea/workflows/deploy.yml
Normal file
34
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,34 @@
|
||||
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 }}
|
Reference in New Issue
Block a user