Skip to content

Commit 6a8446b

Browse files
committed
DO NOT MERGE: updated GitHub actions for github pages deployment
1 parent 2419344 commit 6a8446b

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/presubmit.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Presubmit
22

33
permissions:
44
contents: read
5+
pages: write
6+
id-token: write
57

68
# Controls when the action will run.
79
on:
@@ -18,6 +20,9 @@ jobs:
1820
# prevent caching problems when updating the image.
1921
# container: khronosgroup/docker-images:asciidoctor-spec.20240702
2022
container: khronosgroup/docker-images@sha256:4aab96a03ef292439c9bd0f972adfa29cdf838d0909b1cb4ec2a6d7b2d14a37f
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
2126

2227
steps:
2328
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -58,3 +63,17 @@ jobs:
5863
- name: Generate reference pages
5964
run: |
6065
python3 makeSpec -spec khr OUTDIR=out.refpages -j -O manhtmlpages
66+
67+
- name: Build specs for deployment (HTML and PDF)
68+
run: |
69+
python3 makeSpec -clean -spec khr+ext OUTDIR=out.deploy -j api c env
70+
71+
- name: Upload artifacts
72+
uses: actions/upload-pages-artifact@v3
73+
with:
74+
path: out.deploy
75+
retention-days: "1"
76+
77+
- name: Deploy to GitHub Pages
78+
id: deployment
79+
uses: actions/deploy-pages@v4

copyrights.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
THIS IS A PREVIEW SPECIFICATION BUILD TO REVIEW IN-FLIGHT CHANGES!
2+
3+
Published specifications may be found on the Khronos OpenCL Registry; see
4+
https://registry.khronos.org/OpenCL/.
5+
16
Copyright 2008-2026 The Khronos Group Inc.
27

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

0 commit comments

Comments
 (0)