diff --git a/.github/workflows/blueprint.yml b/.github/workflows/blueprint.yml index 9d8aa3de..4f318260 100644 --- a/.github/workflows/blueprint.yml +++ b/.github/workflows/blueprint.yml @@ -115,6 +115,7 @@ jobs: find home_page/docs -name "*.hash" -delete - name: Bundle dependencies + if: github.event_name == 'push' uses: ruby/setup-ruby@v1 with: working-directory: home_page @@ -122,16 +123,18 @@ jobs: bundler-cache: true # Enable caching for bundler - name: Build website using Jekyll - if: env.HOME_PAGE_EXISTS == 'true' + if: github.event_name == 'push' && 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' 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' id: deployment uses: actions/deploy-pages@v4