2024-07-07 11:47:58 +02:00
|
|
|
name: Homer Bereitstellung
|
2024-07-07 11:48:19 +02:00
|
|
|
|
2023-12-07 20:47:12 +01:00
|
|
|
on:
|
|
|
|
push:
|
2024-07-07 11:47:58 +02:00
|
|
|
branches: [main]
|
2023-12-07 20:47:12 +01:00
|
|
|
|
|
|
|
jobs:
|
2024-07-07 11:47:58 +02:00
|
|
|
deploy:
|
|
|
|
name: Bereistellung
|
2023-12-07 20:47:12 +01:00
|
|
|
if: gitea.repository == 'gcg/homer-data'
|
|
|
|
runs-on: act-runner-user
|
|
|
|
steps:
|
2023-12-24 15:07:57 +01:00
|
|
|
- name: Checkout
|
|
|
|
uses: https://github.com/actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Deploy
|
2023-12-07 20:47:12 +01:00
|
|
|
run: |
|
2023-12-24 15:07:57 +01:00
|
|
|
rsync -azr --delete ./ /opt/data/homer/
|
|
|
|
|
|
|
|
- name: Notification
|
2023-12-07 20:47:12 +01:00
|
|
|
uses: actions/telegram-action@main
|
|
|
|
if: always()
|
|
|
|
with:
|
|
|
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
2024-07-07 11:47:58 +02:00
|
|
|
token: ${{ secrets.TG_TOKEN }}
|