From 447f8f555273964d149611b806f34fe4507d2373 Mon Sep 17 00:00:00 2001 From: aslan Date: Sat, 10 Feb 2024 14:32:50 +0300 Subject: [PATCH] fix CI --- .gitea/workflows/php.yml | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/php.yml b/.gitea/workflows/php.yml index 0121093..04e7979 100644 --- a/.gitea/workflows/php.yml +++ b/.gitea/workflows/php.yml @@ -45,10 +45,10 @@ jobs: sudo curl -o ~/.composer/keys.tags.pub -sL https://composer.github.io/releases.pub sudo curl -o ~/.composer/keys.dev.pub -sL https://composer.github.io/snapshots.pub -# - name: Install dependencies -# env: -# COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works -# run: composer install # will work + - name: Install dependencies + env: + COMPOSER_AUTH: ${{ secrets.COMPOSER_AUTH_JSON }} # only this works + run: composer install # will work - name: Setup project run: make setup @@ -58,22 +58,22 @@ jobs: - name: Check tests run: make test -# -# deploy: -# needs: build -# runs-on: ubuntu-latest -# steps: -# - name: Checkout -# uses: appleboy/ssh-action@v1.0.3 -# -# with: -# host: ${{ secrets.HOST }} -# username: ${{ secrets.USERNAME }} -# password: ${{ secrets.PASSWORD }} -# port: ${{ secrets.PORT }} -# script: | -# cd /var/www/test-testabit/ -# git stash -# git pull --rebase -# git stash clear -# make setup-test + + deploy: + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: appleboy/ssh-action@v1.0.3 + + with: + host: ${{ secrets.HOST }} + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + port: ${{ secrets.PORT }} + script: | + cd /var/www/test-testabit/ + git stash + git pull --rebase + git stash clear + make setup-test