diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 9e3a833..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 @@ -26,6 +26,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 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..f6018e3 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/oneAPI-v1.3-rev-1/oneapi-spec-v1.3-rev-1.zip