Skip to content

Commit

Permalink
Fixed absolute path and stopped azure trying to use custom domain
Browse files Browse the repository at this point in the history
  • Loading branch information
TheToby1 committed Oct 5, 2023
1 parent 7e3a2c9 commit 58aa8b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ runs:

- name: dotnet publish
shell: bash
run: dotnet publish -c Release --property:PublishDir=${{env.DOTNET_ROOT}}/release
run: dotnet publish -c Release --property:PublishDir=$PWD/${{env.DOTNET_ROOT}}/release

# ToDo: Custom domains in azure cost money
# copy the CNAME file into the release folder to allow a custom domain
- name: copy CNAME to CNAME
shell: bash
run: cp CNAME ${{env.DOTNET_ROOT}}/release/wwwroot/CNAME
# - name: copy CNAME to CNAME
# shell: bash
# run: cp CNAME ${{env.DOTNET_ROOT}}/release/wwwroot/CNAME

# copy index.html to 404.html to serve the same file when a file is not found
- name: copy index.html to 404.html
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Build and deploy to GitHub Pages
# Run workflow on every push to my release branch
on:
push:
branches: [ dev ]
branches: [ main ]

jobs:
build:
Expand Down

0 comments on commit 58aa8b3

Please sign in to comment.