diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7de39e8..f7b426b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,16 +17,17 @@ jobs: id: set-destination run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then - echo "::set-output name=destination::/var/www/lantaeu/DTCH/" + echo "DESTINATION=/var/www/lantaeu/DTCH//" >> $GITHUB_ENV else - echo "::set-output name=destination::/var/www/lantaeu/DTCH_DEV/" + echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV fi + - name: Sync Files from ${{ github.ref }} uses: SamKirkland/web-deploy@v1 with: target-server: lanta.eu remote-user: stats private-ssh-key: ${{ secrets.SSH_KEY }} - destination-path: ${{ steps.set-destination.outputs.destination }} + destination-path: ${{ env.DESTINATION }} rsync-options: --no-times -r --exclude=.git* --exclude=*.json --exclude=.git/ --exclude=.github/ --exclude=config.php