Skip to content

Commit 9defbd9

Browse files
committed
Add build workflow
Signed-off-by: David Weik <[email protected]>
1 parent ac170ae commit 9defbd9

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed

.github/workflows/deploy-doc.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy Doc Website to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
15+
defaults:
16+
run:
17+
shell: bash
18+
working-directory: ./website
19+
20+
jobs:
21+
deploy:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version-file: ".nvmrc"
28+
cache: "npm"
29+
- run: npm ci
30+
31+
- name: Build website
32+
run: npm run build
33+
34+
# Popular action to deploy to GitHub Pages:
35+
# Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus
36+
- name: Deploy to GitHub Pages
37+
uses: peaceiris/actions-gh-pages@v4
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
# Build output to publish to the `gh-pages` branch:
41+
publish_dir: ./website/build

website/docs/setup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,13 @@ As the next step you will have to follow the setup instructions detailed in the
9696
- [SAS Content SDK documentation](https://developer.sas.com/sdk/content/docs/getting-started/#sas-viya-setup)
9797
9898
## Sample Content and Config.js
99-
If you want to use the sample content, then import the [Portal-Content-EM.json](./Portal-Content-EM.json) and [Content-EM.json](./Content-EM.json) using SAS Environment Manager or the viya-admin CLI.
99+
If you want to use the sample content, then import the `Portal-Content-EM.json` and `Content-EM.json` using SAS Environment Manager or the viya-admin CLI.
100100
The examples include also static links to SAS Jobs.
101101
This applies to `Use Case 1/interactiveContent-example.json` where you will need to replace the URL with your Viya host.
102102
If you replace the file, you will need to update the `portal-page-layout.json` accordingly with the new file URI.
103103
The `VA Test` page also requires an additional setup: run the `Load-HMEQ.sas` file in `Content/VA Reports`, which will load the hmeq table from sampsio to public.
104104

105-
Go to [config.js](./config.js), search for **VIYA** and replace the value `window.location.origin` with your SAS Viya host if your webserver is not located under the same URL as the Viya host.
105+
Go to `config.js`, search for **VIYA** and replace the value `window.location.origin` with your SAS Viya host if your webserver is not located under the same URL as the Viya host.
106106

107107
If you imported the sample content you can skip this step, if you created your own portal folder you have to search for **PORTAL** and replace the value `68384628-8305-4285-9f16-0cdc57d13dc5` if the URI of your portal folder (go to the folder in SAS Environment Manager, select it and copy just the URI ID— everything after `/folders/folders/`).
108108

0 commit comments

Comments
 (0)