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 Sep 10, 2024
1 parent 6191cbe commit e2ac433
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,6 +2,8 @@ name: Presubmit

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

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

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -58,3 +63,17 @@ jobs:
- name: Generate reference pages
run: |
python3 makeSpec -spec khr OUTDIR=out.refpages -j -O manhtmlpages
- name: Build specs for deployment (HTML and PDF)
run: |
python3 makeSpec -clean -spec khr+ext OUTDIR=out.deploy -j 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 e2ac433

Please sign in to comment.