diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 1ce41f06..6d543ace 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,8 +1,9 @@ -name: "Publish" +name: "Build & Publish" on: push: branches: - master + pull_request: jobs: emanote: runs-on: ubuntu-latest @@ -21,6 +22,7 @@ jobs: nix build -j 4 - name: Deploy to gh-pages 🚀 uses: peaceiris/actions-gh-pages@v3 + if: github.ref == 'refs/heads/master' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./result/