From c3fc4dc7c292b77709a84c75013bf419d42d9d67 Mon Sep 17 00:00:00 2001 From: parsa aghaei Date: Tue, 23 Jun 2026 12:16:46 +0330 Subject: [PATCH] Add Gitea Actions deploy workflow --- .gitea/workflows/deploy.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/deploy.yml diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..43d6374 --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,22 @@ +name: Deploy Frontend +on: + push: + branches: [main] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install SSH client + run: apk add --no-cache openssh-client + - name: Setup SSH key + env: + SSH_KEY: ${{ secrets.DEPLOY_KEY }} + run: | + mkdir -p ~/.ssh + echo "$SSH_KEY" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -p 2234 -H 87.248.133.138 >> ~/.ssh/known_hosts + - name: Deploy + run: ssh -p 2234 devops@87.248.133.138 'bash /opt/services/parsa/frontend/deploy.sh'