Skip to content

Commit

Permalink
debugging write of domain to CNAME
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscarrollsmith committed Oct 4, 2023
1 parent d0a0b75 commit bb380e7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,20 @@ jobs:
run: |
echo "DOMAIN=$(node -e 'console.log(new URL(require(\"./src/customizations/siteproperties.json\").url).hostname)')" >> $GITHUB_ENV
- name: Debug DOMAIN
run: echo "Debug DOMAIN=${{ env.DOMAIN }}"

- name: Add CNAME to dist
run: |
if [[ "${{ env.DOMAIN }}" != *.github.io ]]; then
echo ${{ env.DOMAIN }} > ./dist/CNAME
fi
- name: Debug CNAME
run: cat ./dist/CNAME

- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
single-commit: true

0 comments on commit bb380e7

Please sign in to comment.