From 0022c32a557922c28cfff90a77e8cba5c275b20e Mon Sep 17 00:00:00 2001 From: n-peugnet Date: Tue, 29 Mar 2022 21:18:59 +0200 Subject: build: run workflow on pull request w/out publish --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e6df217..ba50c46 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,9 @@ on: push: branches: - main + pull_request: + branches: + - main jobs: sphinx: @@ -18,6 +21,7 @@ jobs: && pip install myst-parser sphinx-rtd-theme docs-folder: . - name: Install RSA key + if: ${{ github.event_name != 'pull_request' }} env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: | @@ -29,6 +33,7 @@ jobs: ssh-agent -a $SSH_AUTH_SOCK > /dev/null ssh-add $HOME/.ssh/id_rsa - name: Publish + if: ${{ github.event_name != 'pull_request' }} env: SSH_AUTH_SOCK: /tmp/ssh_agent.sock run: make publish USER=docs -- cgit v1.2.3