From 2bbef9da3a46ae3e2e64c5b04d87ee6299d2117c Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 26 Apr 2024 13:36:04 -0500 Subject: [PATCH 1/5] add 1.3 --- README.rst | 6 ++++++ site.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/README.rst b/README.rst index b9086c2..2d3e415 100644 --- a/README.rst +++ b/README.rst @@ -2,5 +2,11 @@ oneAPI Specification Web Site ============================= +.. image:: https://github.com/uxlfoundation/oneapi-spec-site/actions/workflows/checks.yaml/badge.svg + :target: https://github.com/uxlfoundation/oneapi-spec-site/actions/workflows/checks.yaml + +.. image:: https://github.com/uxlfoundation/oneapi-spec-site/actions/workflows/publish.yaml/badge.svg + :target: https://github.com/uxlfoundation/oneapi-spec-site/actions/workflows/publish.yaml + This repository contains the source files for the oneAPI Specification web site. diff --git a/site.yaml b/site.yaml index c937db9..f2c145a 100644 --- a/site.yaml +++ b/site.yaml @@ -2,3 +2,5 @@ latest: 1.0-rev-1 releases: - name: 1.0-rev-1 url: https://github.com/uxlfoundation/oneAPI-spec/releases/download/v1.0-rev-1/oneapi-spec-v1.0-rev-1.zip +- name: 1.3-rev-1 + url: https://github.com/uxlfoundation/oneAPI-spec/releases/download/v1.3-rev-1/oneapi-spec-v1.3-rev-1.zip From 5044ac8d3f2d712f895871d34313d04285fe29d4 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 26 Apr 2024 13:49:24 -0500 Subject: [PATCH 2/5] update --- .github/workflows/publish.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9e3a833..a2ae600 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -14,6 +14,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} - name: Install Python uses: actions/setup-python@v5 with: From cc8dc8d04f9a848419ee283b2718018dec98b0f4 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 26 Apr 2024 13:54:25 -0500 Subject: [PATCH 3/5] update --- site.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site.yaml b/site.yaml index f2c145a..f6018e3 100644 --- a/site.yaml +++ b/site.yaml @@ -3,4 +3,4 @@ releases: - name: 1.0-rev-1 url: https://github.com/uxlfoundation/oneAPI-spec/releases/download/v1.0-rev-1/oneapi-spec-v1.0-rev-1.zip - name: 1.3-rev-1 - url: https://github.com/uxlfoundation/oneAPI-spec/releases/download/v1.3-rev-1/oneapi-spec-v1.3-rev-1.zip + url: https://github.com/uxlfoundation/oneAPI-spec/releases/download/oneAPI-v1.3-rev-1/oneapi-spec-v1.3-rev-1.zip From f17549873359c7d15a62022fcd623c15fdce5818 Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 26 Apr 2024 13:58:30 -0500 Subject: [PATCH 4/5] update --- .github/workflows/publish.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a2ae600..916b3d4 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -28,6 +28,7 @@ jobs: run: make -C src html - name: Assemble site run: | + cat site.yaml python scripts/site.py build cp -r src/_build/html/* dist - name: Publish to development on PR From c18526a6445a1ea03cac42ee5eb709370b869a6a Mon Sep 17 00:00:00 2001 From: Robert Cohn Date: Fri, 26 Apr 2024 14:00:54 -0500 Subject: [PATCH 5/5] update --- .github/workflows/publish.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 916b3d4..1483b0d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,7 +2,7 @@ name: Publish on: workflow_dispatch: # trigger will use workflow in target (main) so it can have access to secrets - pull_request_target: + pull_request: branches: - main @@ -14,8 +14,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - ref: ${{ github.event.pull_request.head.sha }} - name: Install Python uses: actions/setup-python@v5 with: