From f5735e94473cee5f9e62a0596056fc52364f5e99 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Fri, 22 Dec 2023 21:53:22 +0100 Subject: [PATCH] add ci workflow --- .gitea/workflows/prod.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .gitea/workflows/prod.yml diff --git a/.gitea/workflows/prod.yml b/.gitea/workflows/prod.yml new file mode 100644 index 0000000..a1689d1 --- /dev/null +++ b/.gitea/workflows/prod.yml @@ -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 }} \ No newline at end of file