From f3097b9004aa839d9c22bd70ecb92b4f7a8282ec Mon Sep 17 00:00:00 2001 From: toufic ar Date: Tue, 27 Jan 2026 06:19:43 +0200 Subject: [PATCH] add deploy workflow --- .forgejo/workflows/deploy.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .forgejo/workflows/deploy.yaml diff --git a/.forgejo/workflows/deploy.yaml b/.forgejo/workflows/deploy.yaml new file mode 100644 index 0000000..751191f --- /dev/null +++ b/.forgejo/workflows/deploy.yaml @@ -0,0 +1,21 @@ +on: + push: + branches: + - main +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: checkout repo + uses: actions/checkout@v6 + - name: install rsync + run: | + apt update + apt install rsync -y + - name: add ssh key + uses: actions/ssh-setup@v1 + with: + ssh-key: ${{ secrets.ACTIONS_SSH_KEY }} + add-hosts: "toufy.me" + - name: sync repo + run: rsync -az . root@toufy.me:/var/www/toufy.me