Add .gitea/workflows/copy.yaml
This commit is contained in:
parent
7e23ab1942
commit
531a6760e6
29
.gitea/workflows/copy.yaml
Normal file
29
.gitea/workflows/copy.yaml
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: copy-homer
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ gitea.workflow }}-${{ gitea.ref }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
prod-build:
|
||||||
|
if: gitea.repository == 'gcg/homer-data' && gitea.event_name == 'push'
|
||||||
|
runs-on: act-runner-user
|
||||||
|
timeout-minutes: 5
|
||||||
|
steps:
|
||||||
|
- name: clone
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
- name: deploy
|
||||||
|
run: |
|
||||||
|
rsync -azr --delete ./ /opt/data/homer/
|
||||||
|
- name: notification
|
||||||
|
uses: actions/telegram-action@main
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||||
|
token: ${{ secrets.TG_TOKEN }}
|
||||||
|
include_commit_info: false
|
Loading…
x
Reference in New Issue
Block a user