diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1b710a729..8717de1e0 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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/github-pages-deploy-action@3.7.1 with: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages - FOLDER: samples/BlazorWebAssemblyApp/bin/wwwroot + FOLDER: samples/BlazorWebAssemblyApp/bin/wwwroot \ No newline at end of file