From ca9761d52a7646dbe9e7a60000a6eb7840f1fdaf Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Tue, 26 Sep 2023 16:13:28 +0200 Subject: [PATCH 1/2] link to website --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index d1e6b8a..6f3c7de 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,6 @@ jobs: echo "DESTINATION=/var/www/lantaeu/DTCH_DEV/" >> $GITHUB_ENV fi - - name: Sync Files from ${{ github.ref }} uses: SamKirkland/web-deploy@v1 with: @@ -31,3 +30,10 @@ jobs: private-ssh-key: ${{ secrets.SSH_KEY }} destination-path: ${{ env.DESTINATION }} 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 -- 2.49.1 From 3272ded0258c09c570889a222ffcd45dae082a04 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Tue, 26 Sep 2023 16:14:19 +0200 Subject: [PATCH 2/2] correct url --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 6f3c7de..aad2e61 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,7 @@ jobs: - name: LINK TO WEBSITE run: | if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then - echo "Visit the production site at: https://www.lantaeu/DTCH/" + echo "Visit the production site at: https://lanta.eu/DTCH/" else - echo "Visit the dev site at: https://www.lantaeu/DTCH_DEV/" + echo "Visit the dev site at: https://lanta.eu/DTCH_DEV/" fi -- 2.49.1