From 5fea8a807987231ccb2ded7a693317b389d644c1 Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 26 Mar 2024 14:11:34 -0700 Subject: [PATCH] DO NOT MERGE: updated GitHub actions for github pages deployment --- .github/workflows/presubmit.yml | 19 +++++++++++++++++++ copyrights.txt | 5 +++++ 2 files changed, 24 insertions(+) diff --git a/.github/workflows/presubmit.yml b/.github/workflows/presubmit.yml index 605571254..217fa9bcb 100644 --- a/.github/workflows/presubmit.yml +++ b/.github/workflows/presubmit.yml @@ -2,6 +2,8 @@ name: Presubmit permissions: contents: read + pages: write + id-token: write on: [push, pull_request] @@ -9,6 +11,9 @@ 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 @@ -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 diff --git a/copyrights.txt b/copyrights.txt index 11333319c..7c8f77274 100644 --- a/copyrights.txt +++ b/copyrights.txt @@ -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.