Denys Konovalov
213e7e496a
All checks were successful
deploy-web-assets / deploy (push) Successful in 14s
27 lines
617 B
YAML
27 lines
617 B
YAML
name: deploy-web-assets
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
if: gitea.repository == 'gcg/web-assets'
|
|
runs-on: act-runner-user
|
|
steps:
|
|
- name: Checkout
|
|
uses: https://github.com/actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Deploy
|
|
run: |
|
|
rsync -azr --delete --exclude .git --exclude .gitea ./ /opt/data/webdata/assets/
|
|
|
|
- name: Notification
|
|
uses: actions/telegram-action@main
|
|
if: always()
|
|
with:
|
|
chat_id: ${{ secrets.TG_CHAT_ID }}
|
|
token: ${{ secrets.TG_TOKEN }} |