diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..62ce35f --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -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 }} \ No newline at end of file