2023-12-07 20:47:12 +01:00
|
|
|
name: deploy-homer
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
prod-build:
|
|
|
|
if: gitea.repository == 'gcg/homer-data'
|
|
|
|
runs-on: act-runner-user
|
|
|
|
timeout-minutes: 5
|
|
|
|
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 }}
|
2023-10-21 21:51:06 +02:00
|
|
|
token: ${{ secrets.TG_TOKEN }}
|