From 265bd525d820e8285585dd0ae8f06004874898b4 Mon Sep 17 00:00:00 2001 From: Filip Rojek Date: Thu, 7 Dec 2023 17:35:41 +0100 Subject: [PATCH] Actions - added deploy --- .gitea/workflows/build.yaml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 242088d..179395b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -29,16 +29,24 @@ jobs: needs: build runs-on: ubuntu-latest if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success() - steps: - name: Deploy to server - uses: AEnterprise/rsync-deploy@v1.0.2 - env: - DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} - ARGS: "-e -c -r --delete" - SERVER_PORT: 22 - FOLDER: "./" - SERVER_IP: ${{ secrets.SERVER_IP }} - USERNAME: ${{ secrets.USERNAME }} - SERVER_DESTINATION: "/srv/www/cz/pkmples/www" - + run: | + scp "./public ${{ secrets.SERVER_IP }}:/srv/www/cz/pkmples/www" +# deploy: +# needs: build +# runs-on: ubuntu-latest +# if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/master' && success() +# +# steps: +# - name: Deploy to server +# uses: AEnterprise/rsync-deploy@v1.0.2 +# env: +# DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} +# ARGS: "-e -c -r --delete" +# SERVER_PORT: 22 +# FOLDER: "./" +# SERVER_IP: ${{ secrets.SERVER_IP }} +# USERNAME: ${{ secrets.USERNAME }} +# SERVER_DESTINATION: "/srv/www/cz/pkmples/www" +#