Skip to content

Commit

Permalink
Add pre-merge build (#145)
Browse files Browse the repository at this point in the history
There is a separate artifact containing the PDF build to make it easier to grab the PDF.
  • Loading branch information
llvm-beanz authored Jan 9, 2024
1 parent 1949126 commit 25d2e88
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
Expand Down

0 comments on commit 25d2e88

Please sign in to comment.