diff --git a/.github/workflows/dotnet-core.yml b/.github/workflows/dotnet-core.yml index 8a1467e9..470a63f3 100644 --- a/.github/workflows/dotnet-core.yml +++ b/.github/workflows/dotnet-core.yml @@ -26,24 +26,6 @@ jobs: run: dotnet build -c Release --no-restore - name: Publish run: dotnet publish ${{ env.project_name }} -c Release -o app/publish --no-restore | dotnet publish ${{ env.project_name }} -c Release -o app/publish --no-restore -p:PublishTrimmed=false - - name: Rewrite base href - uses: SteveSandersonMS/ghaction-rewrite-base-href@v1 - with: - html_path: app/publish/wwwroot/index.html - base_href: ${{ env.base_href }} - - name: add .nojekyll - run: touch app/publish/wwwroot/.nojekyll - - name: write git commit id - run: echo -n "${GITHUB_SHA}" > app/publish/wwwroot/commit.txt - - name: Deploy to Github Pages - uses: JamesIves/github-pages-deploy-action@v4.6.1 - with: - ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} - BASE_BRANCH: main # The branch the action should deploy from. - BRANCH: gh-pages # The branch the action should deploy to. - FOLDER: app/publish/wwwroot # The folder the action should deploy. - SINGLE_COMMIT: true - - name: Rewrite base href uses: SteveSandersonMS/ghaction-rewrite-base-href@v1 with: