web-assets/.gitea/workflows/deploy.yml
Denys Konovalov 49718e5254
All checks were successful
Web-Assets Bereitstellung / Bereitstellung (push) Successful in 13s
.gitea/workflows/deploy.yml aktualisiert
2024-07-07 12:03:22 +02:00

28 lines
645 B
YAML

name: Web-Assets Bereitstellung
on:
push:
branches: [main]
jobs:
deploy:
name: Bereitstellung
if: gitea.repository == 'gcg/web-assets'
runs-on: act-runner-user
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
with:
submodules: recursive
- name: Deploy
run: |
rsync -azr --delete --exclude .git --exclude .gitea ./ /opt/data/webdata/assets/
- name: Notification
uses: actions/telegram-action@main
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}