Skip to content

Commit

Permalink
DO NOT MERGE: updated GitHub actions for github pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbaug committed Apr 4, 2024
1 parent 1fd459f commit 68e6989
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: Presubmit

permissions:
contents: read
pages: write
id-token: write

on: [push, pull_request]

jobs:
build:
name: Build all specs
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -47,3 +52,17 @@ jobs:
- name: Validate XML
run: |
make -C xml validate
- name: Build specs for deployment (HTML and PDF)
run: |
python3 makeSpec -clean -spec khr OUTDIR=out.deploy -j5 api c env ext
- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: out.deploy
retention-days: "1"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
5 changes: 5 additions & 0 deletions copyrights.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
THIS IS A PREVIEW SPECIFICATION BUILD TO REVIEW IN-FLIGHT CHANGES!

Published specifications may be found on the Khronos OpenCL Registry; see
https://registry.khronos.org/OpenCL/.

Copyright 2008-2024 The Khronos Group Inc.

This Specification is protected by copyright laws and contains material proprietary to Khronos.
Expand Down

0 comments on commit 68e6989

Please sign in to comment.