2024-07-07 12:03:22 +02:00
|
|
|
name: Web-Assets Bereitstellung
|
2023-12-30 22:37:23 +01:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-07-07 12:03:13 +02:00
|
|
|
branches: [main]
|
2023-12-30 22:37:23 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
2024-07-07 12:03:13 +02:00
|
|
|
name: Bereitstellung
|
2023-12-30 22:37:23 +01:00
|
|
|
if: gitea.repository == 'gcg/web-assets'
|
|
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: https://github.com/actions/checkout@v4
|
2024-01-20 16:52:56 +01:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2023-12-30 22:37:23 +01:00
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
run: |
|
2024-01-01 20:37:34 +01:00
|
|
|
rsync -azr --delete --exclude .git --exclude .gitea ./ /opt/data/webdata/assets/
|
2023-12-30 22:37:23 +01:00
|
|
|
|
|
|
|
- name: Notification
|
|
|
|
uses: actions/telegram-action@main
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
2024-07-07 12:03:13 +02:00
|
|
|
token: ${{ secrets.TG_TOKEN }}
|