Skip to content

Commit

Permalink
deduplicate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanloerwald committed Jul 3, 2024
1 parent 432ad8f commit 62e3f00
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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:
Expand Down

0 comments on commit 62e3f00

Please sign in to comment.