Dev #23
1 changed files with 4 additions and 3 deletions
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue