add ci workflow
All checks were successful
deploy / deploy (push) Successful in 4s

This commit is contained in:
Denys Konovalov 2023-12-22 21:53:22 +01:00
parent f915734f3f
commit f5735e9447
Signed by: Denys Konovalov
GPG Key ID: 0037E1B0E33BD2C9

23
.gitea/workflows/prod.yml Normal file

@ -0,0 +1,23 @@
name: deploy
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: act-runner-user
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Deploy
run: |
rsync -azr --delete ./ /opt/data/keycloak/themes/cantorid/
- name: Notification
uses: actions/telegram-action@main
if: always()
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}