diff --git a/.github/workflows/blueprint.yml b/.github/workflows/blueprint.yml index 4f318260..e6237abb 100644 --- a/.github/workflows/blueprint.yml +++ b/.github/workflows/blueprint.yml @@ -115,7 +115,7 @@ jobs: find home_page/docs -name "*.hash" -delete - name: Bundle dependencies - if: github.event_name == 'push' + if: github.event_name == 'push' && github.event.pull_request == null uses: ruby/setup-ruby@v1 with: working-directory: home_page @@ -123,18 +123,18 @@ jobs: bundler-cache: true # Enable caching for bundler - name: Build website using Jekyll - if: github.event_name == 'push' && env.HOME_PAGE_EXISTS == 'true' + if: github.event_name == 'push' && github.event.pull_request == null && env.HOME_PAGE_EXISTS == 'true' working-directory: home_page run: JEKYLL_ENV=production bundle exec jekyll build # Note this will also copy the blueprint and API doc into home_page/_site - name: "Upload website (API documentation, blueprint and any home page)" - if: github.event_name == 'push' + if: github.event_name == 'push' && github.event.pull_request == null uses: actions/upload-pages-artifact@v3 with: path: ${{ env.HOME_PAGE_EXISTS == 'true' && 'home_page/_site' || 'home_page/' }} - name: Deploy to GitHub Pages - if: github.event_name == 'push' + if: github.event_name == 'push' && github.event.pull_request == null id: deployment uses: actions/deploy-pages@v4