link to website
This commit is contained in:
parent
b434109730
commit
b02d869fba
1 changed files with 7 additions and 1 deletions
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
|
|
@ -22,7 +22,6 @@ jobs:
|
||||||
echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV
|
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:
|
||||||
|
|
@ -31,3 +30,10 @@ jobs:
|
||||||
private-ssh-key: ${{ secrets.SSH_KEY }}
|
private-ssh-key: ${{ secrets.SSH_KEY }}
|
||||||
destination-path: ${{ env.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
|
||||||
|
- name: LINK TO WEBSITE
|
||||||
|
run: |
|
||||||
|
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
|
||||||
|
echo "Visit the production site at: https://www.lantaeu/DTCH/"
|
||||||
|
else
|
||||||
|
echo "Visit the dev site at: https://www.lantaeu/DTCH_DEV/"
|
||||||
|
fi
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue