We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cf45a9 commit 0b6e065Copy full SHA for 0b6e065
.github/workflows/deploy.yml
@@ -88,7 +88,11 @@ jobs:
88
89
- name: Setup environment variables
90
run: |
91
- echo "SITE_URL=https://${GITHUB_REPOSITORY%/*}.github.io/${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
+ if [[ "${GITHUB_REPOSITORY}" = *.github.io ]]; then
92
+ echo "SITE_URL=https://${GITHUB_REPOSITORY%/*}.github.io/" >> $GITHUB_ENV
93
+ else
94
+ echo "SITE_URL=https://${GITHUB_REPOSITORY%/*}.github.io/${GITHUB_REPOSITORY#*/}" >> $GITHUB_ENV
95
+ fi
96
echo "REPO_URL=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" >> $GITHUB_ENV
97
98
- name: Build
0 commit comments