Skip to content

Commit

Permalink
Used new GITHUB_OUTPUT file
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscarrollsmith committed Oct 4, 2023
1 parent c83b06a commit b249bf0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
- name: Set the domain
id: set-domain
run: |
echo "DOMAIN=$(node -e 'console.log(new URL(require("./src/customizations/siteproperties.json").url).hostname)')" >> $GITHUB_ENV
echo "DOMAIN=$(node -e 'console.log(new URL(require("./src/customizations/siteproperties.json").url).hostname)')" >> $GITHUB_OUTPUT
- name: Debug DOMAIN
run: echo "Debug DOMAIN=${{ env.DOMAIN }}"
run: echo "Debug DOMAIN=${{ steps.set-domain.outputs.DOMAIN }}"

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

0 comments on commit b249bf0

Please sign in to comment.