Dev #23

Merged
OpzekerIT merged 10 commits from dev into main 2023-09-26 13:39:33 +00:00
Showing only changes of commit 1fda3dc755 - Show all commits

View file

@ -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