From 2dd07fe2f8c543004a3cb36364416647edbf5822 Mon Sep 17 00:00:00 2001 From: Nikolay Pianikov Date: Mon, 11 Mar 2024 09:17:50 +0300 Subject: [PATCH] Publish Blazor example from master only --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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