diff --git a/.gitea/workflows/build_and_deploy.yaml b/.gitea/workflows/build_and_deploy.yaml index b83b723..e0cf6d7 100644 --- a/.gitea/workflows/build_and_deploy.yaml +++ b/.gitea/workflows/build_and_deploy.yaml @@ -23,8 +23,13 @@ jobs: run: | zola build - - name: Set Destination Folder - run: echo "DEST_FOLDER=$(if [ ${{ github.ref == 'refs/heads/master' }} ]; then echo '/srv/www/cz/pkmples/www'; else echo '/srv/www/cz/pkmples/dev'; fi)" >> $GITHUB_ENV + - name: Set Destination Folder if MASTER + if: ${{ github.ref == 'refs/heads/master' }} + run: echo "DEST_FOLDER=/srv/www/cz/pkmples/www" >> $DEST_FOLDER + + - name: Set Destination Folder if DEV + if: ${{ github.ref == 'refs/heads/dev' }} + run: echo "DEST_FOLDER=/srv/www/cz/pkmples/dev" >> $DEST_FOLDER - name: Deploy to server uses: AEnterprise/rsync-deploy@v1.0.2