.gitea/workflows/deploy.yml hinzugefügt
This commit is contained in:
parent
3553bff998
commit
7b77fd4a02
26
.gitea/workflows/deploy.yml
Normal file
26
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: deploy-web-assets
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
if: gitea.repository == 'gcg/web-assets'
|
||||||
|
runs-on: act-runner-user
|
||||||
|
timeout-minutes: 5
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: https://github.com/actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
rsync -azr --delete ./ /opt/data/webdata/assets/
|
||||||
|
|
||||||
|
- name: Notification
|
||||||
|
uses: actions/telegram-action@main
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
||||||
|
token: ${{ secrets.TG_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user