Skip to content

Commit 01b8361

Browse files
committed
Publish sample spec to Github Pages.
1 parent fc04513 commit 01b8361

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/render-sample-spec.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Render the sample spec on pushes to main.
2+
#
3+
# HTML URL: https://opencomputeproject.github.io/ocp-spec-tools/sample-spec/HEAD
4+
# PDF URL: https://opencomputeproject.github.io/ocp-spec-tools/sample-spec/HEAD/pdf
25
name: render-sample-spec
36

47
on:
@@ -20,3 +23,24 @@ jobs:
2023
"gh_pages_pdf": "sample-spec/HEAD/pdf"
2124
}
2225
]
26+
artifact-name: rendered-spec
27+
28+
deploy:
29+
environment:
30+
name: github-pages
31+
url: ${{ steps.deployment.outputs.page_url }}
32+
runs-on: ubuntu-latest
33+
needs: [render-sample]
34+
steps:
35+
- name: Download rendered artifacts
36+
uses: actions/download-artifact@v4
37+
with:
38+
name: rendered-spec
39+
path: gh-pages
40+
- name: Upload files as artifact
41+
uses: actions/upload-pages-artifact@v3
42+
with:
43+
path: "gh-pages"
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)