From 25d2e8852c09099bf0b2ac393c0cede8f6843174 Mon Sep 17 00:00:00 2001 From: Chris B Date: Tue, 9 Jan 2024 12:30:50 -0600 Subject: [PATCH] Add pre-merge build (#145) There is a separate artifact containing the PDF build to make it easier to grab the PDF. --- .github/workflows/jekyll-gh-pages.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index 3610d0bb..7a749646 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -5,6 +5,10 @@ on: # Runs on pushes targeting the default branch push: branches: ["main"] + pull_request: + types: [opened,synchronize] + paths: + - specs/language/** # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -50,9 +54,15 @@ jobs: destination: ./_site - name: Upload artifact uses: actions/upload-pages-artifact@v1 + - if: ${{ github.event_name == 'pull_request'}} + uses: actions/upload-artifact@v4 + with: + name: PDF + path: ${{github.workspace}}/specs/hlsl.pdf # Deployment job deploy: + if: ${{ github.event_name == 'push'}} environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}