From e159cecd2fed25bf9380305c9a92187df7e8de89 Mon Sep 17 00:00:00 2001 From: Djalim Simaila Date: Sat, 22 Feb 2025 18:50:36 +0100 Subject: [PATCH] jsp 3 --- .gitea/workflows/test.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/test.yml diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml new file mode 100644 index 0000000..934e823 --- /dev/null +++ b/.gitea/workflows/test.yml @@ -0,0 +1,30 @@ +name: DEPLOY +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + + - name: List files in the repository + run: | + ls ${{ gitea.workspace }} + + - name: deploy to server + uses: rejahrehim/rsync-deploy-with-proxy@v2.1.6 + env: + DEPLOY_KEY: ${{ secrets.SERVER_SSH_KEY }} + ARGS: "--delete -av" + SERVER_PORT: ${{ secrets.SERVER_PORT }} + FOLDER: "." + SERVER_IP: ${{ secrets.SERVER_IP }} + USERNAME: ${{ secrets.USERNAME }} + SERVER_DESTINATION: ${{ secrets.SERVER_DESTINATION }} + PROXY_SERVER_PORT: ${{ secrets.PROXY_SERVER_PORT }} + PROXY_SERVER_USERNAME: ${{ secrets.PROXY_SERVER_USERNAME }} + PROXY_SERVER_IP: ${{ secrets.PROXY_SERVER_IP }}