Skip to content

Commit

Permalink
Publish Blazor example from master only
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolayPianikov committed Mar 11, 2024
1 parent efb2d76 commit 2dd07fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ jobs:
run: dotnet run --project ./build -- check

- name: Publish Blazor example
run: dotnet run --project ./build -- publish
if: ${{ github.ref == 'refs/heads/master' }}
run: dotnet run --project ./build -- publish

- name: Commit wwwroot to GitHub Pages
if: ${{ github.ref == 'refs/heads/master' }}
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: samples/BlazorWebAssemblyApp/bin/wwwroot
FOLDER: samples/BlazorWebAssemblyApp/bin/wwwroot

0 comments on commit 2dd07fe

Please sign in to comment.