From 5deb5c3b9e03bca94812ced5d00955b5cbb7c4b1 Mon Sep 17 00:00:00 2001 From: Raul Victor Trombin Date: Thu, 28 Mar 2024 14:44:50 -0300 Subject: [PATCH] github: action: Fix: Deploy only on master branch --- .github/workflows/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 0e6b79b7f..093586f31 100644 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -31,6 +31,7 @@ jobs: run: cargo doc - name: Deploy uses: peaceiris/actions-gh-pages@v3 + if: ${{ github.ref == 'refs/heads/master' }} with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./target/doc