env
This commit is contained in:
parent
013cf1795b
commit
025b7b04c6
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
|
id: set-destination
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
|
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
|
else
|
||||||
echo "::set-output name=destination::/var/www/lantaeu/DTCH_DEV/"
|
echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
- name: Sync Files from ${{ github.ref }}
|
- name: Sync Files from ${{ github.ref }}
|
||||||
uses: SamKirkland/web-deploy@v1
|
uses: SamKirkland/web-deploy@v1
|
||||||
with:
|
with:
|
||||||
target-server: lanta.eu
|
target-server: lanta.eu
|
||||||
remote-user: stats
|
remote-user: stats
|
||||||
private-ssh-key: ${{ secrets.SSH_KEY }}
|
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
|
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