diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 57e5df26..1aa05274 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -19,59 +19,9 @@ jobs: with: dotnet-version: '6.0.x' include-prerelease: true - - # publishes Blazor project to the release-folder - - name: Publish .NET Core Project - working-directory: LaunchApp - run: dotnet publish LaunchApp.csproj -c Release -o release --nologo - - # 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 BlazorGitHubPagesDemo - run: sed -i 's///g' LaunchApp/release/wwwroot/index.html - - # changes hash - - name: Fix service-worker-assets.js hashes - working-directory: LaunchApp/release/wwwroot - run: | - jsFile=$( service-worker-assets.js - - # copy index.html to 404.html to serve the same file when a file is not found - - name: copy index.html to 404.html - run: cp LaunchApp/release/wwwroot/index.html LaunchApp/release/wwwroot/404.html - - # add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore) - - name: Add .nojekyll file - run: touch LaunchApp/release/wwwroot/.nojekyll - - - name: Commit wwwroot to GitHub Pages - uses: JamesIves/github-pages-deploy-action@3.7.1 + - name: Deploy app + uses: proulxsamuel/deploy-blazor-to-gh-pages@master with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: LaunchApp/release/wwwroot + # The path to the Blazor project in the repository. + # Default: '.' + project_path: 'LaunchApp/' diff --git a/LaunchApp/Shared/NavMenu.razor b/LaunchApp/Shared/NavMenu.razor index 7e59f0ba..e08b2aab 100644 --- a/LaunchApp/Shared/NavMenu.razor +++ b/LaunchApp/Shared/NavMenu.razor @@ -1,6 +1,6 @@