diff --git a/.github/workflows/_build-deploy.yml b/.github/workflows/_build-deploy.yml index 2ba11b7..4bdc28a 100644 --- a/.github/workflows/_build-deploy.yml +++ b/.github/workflows/_build-deploy.yml @@ -57,20 +57,19 @@ jobs: - name: Restore project dependencies run: | dotnet restore ${{ env.PROJECT_PATH }} - dotnet publish ${{ env.PROJECT_PATH }} -c:Release -p:GHPages=true -p:Version=${{ inputs.project-version }} -o:${{ inputs.project-output }} --no-restore --nologo + dotnet publish ${{ env.PROJECT_PATH }} -c:Release -p:Version=${{ inputs.project-version }} -o:${{ inputs.project-output }} --no-restore --nologo # "https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-8.0#github-pages" # "To deploy folders starting with underscore, add an empty .nojekyll file to the Git branch." - name: Add .nojekyll file run: touch "${{ inputs.project-output }}/wwwroot/.nojekyll" - # changes the base-tag in index.html from '/' to 'BlazorGitHubPagesDemo' to match GitHub Pages repository subdirectory - - name: Change base-tag in index.html from / to the repository name - run: | - echo 'Get the repository name.' - repositoryName=$(basename '${{ github.repository }}') - echo "Repository name: $repositoryName" - sed -i 's///g' "${{ inputs.project-output }}/wwwroot/index.html" + # # changes the base-tag in index.html from '/' to match GitHub Pages repository subdirectory + # - name: Change base-tag in index.html from / to the repository name + # run: | + # repositoryName=$(basename '${{ github.repository }}') + # echo "Repository name: $repositoryName" + # sed -i 's///g' "${{ inputs.project-output }}/wwwroot/index.html" - name: Setup Pages uses: actions/configure-pages@v4