Skip to content

Commit

Permalink
Update preview URL
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Feb 25, 2024
1 parent 21255af commit 8bc676e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Create dotenv
run: |
echo 'SITE_NAME="HydePHP.com PR Preview"' > .env
echo "SITE_URL=https://hydephp.github.io/previews/hydephp-com/${{ github.event.pull_request.number }}" >> .env
echo "SITE_URL=https://ci.hydephp.com/previews/website/${{ github.event.pull_request.number }}" >> .env
echo "TORCHLIGHT_TOKEN=${{ secrets.TORCHLIGHT_TOKEN }}" >> .env
echo "ROBOTS_NOINDEX=true" >> .env
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
runs-on: ubuntu-latest
environment:
name: pull-request-preview
url: https://hydephp.github.io/previews/hydephp-com/${{ github.event.pull_request.number }}
url: https://ci.hydephp.com/previews/website/${{ github.event.pull_request.number }}

steps:
- name: Download the artifact
Expand All @@ -96,7 +96,7 @@ jobs:
target-directory: "docs/hydephp-com/${{ github.event.pull_request.number }}"

- name: Output the URL
run: echo "https://hydephp.github.io/previews/hydephp-com/${{ github.event.pull_request.number }}"
run: echo "https://ci.hydephp.com/previews/website/${{ github.event.pull_request.number }}"


comment-on-pull-request:
Expand All @@ -113,5 +113,5 @@ jobs:
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: 'A [live preview](https://hydephp.github.io/previews/hydephp-com/${{ github.event.pull_request.number }}) is being deployed!<br><br>Please note that it may take a few seconds for GitHub Pages to build and deploy. The preview will be removed at midnight UTC.'
body: 'A [live preview](https://ci.hydephp.com/previews/website/${{ github.event.pull_request.number }}) is being deployed!<br><br>Please note that it may take a few seconds for GitHub Pages to build and deploy. The preview will be removed at midnight UTC.'
})

0 comments on commit 8bc676e

Please sign in to comment.