mirror of
https://github.com/sern-handler/website
synced 2026-06-18 13:52:21 +00:00
Compare commits
3 Commits
feat/tutor
...
build/auto
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b453377bad | ||
|
|
ac5b875716 | ||
|
|
1a404dd2bf |
39
.github/workflows/build-docs.yml
vendored
Normal file
39
.github/workflows/build-docs.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: build-docs
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
# Review gh actions docs if you want to further define triggers, paths, etc
|
||||||
|
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
name: Checkout and Build Docs
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
repository: 'sern-handler/handler',
|
||||||
|
path: 'handler/'
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 18
|
||||||
|
cache: npm
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci
|
||||||
|
- name: clean docs directory
|
||||||
|
run: |
|
||||||
|
rm -rf docs
|
||||||
|
- name: Build website
|
||||||
|
run: npm run build
|
||||||
|
- name: Create Pull Request
|
||||||
|
id: cpr
|
||||||
|
uses: peter-evans/create-pull-request@v5-beta
|
||||||
|
with:
|
||||||
|
commit-message: "chore: update docs"
|
||||||
|
branch: docs
|
||||||
|
delete-branch: true
|
||||||
|
branch-suffix: short-commit-hash
|
||||||
|
title: "docs: Update docs"
|
||||||
|
body: "asfl;asdkcng;lfkv;lajf;bflglfsafs;af"
|
||||||
|
reviewers: jacoobes
|
||||||
@@ -159,16 +159,17 @@ const config = {
|
|||||||
darkTheme: darkCodeTheme,
|
darkTheme: darkCodeTheme,
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
// plugins : [
|
plugins : [
|
||||||
// [
|
process.env.TEST
|
||||||
// 'docusaurus-plugin-typedoc',
|
? [
|
||||||
// {
|
'docusaurus-plugin-typedoc',
|
||||||
// //if you're editing website, please change this to your local branch of sern to generate documentation
|
{
|
||||||
// entryPoints: ['../sernHandlerV2/src/index.ts'],
|
//if you're editing website, please change this to your local branch of sern to generate documentation
|
||||||
// tsconfig: '../sernHandlerV2/tsconfig-esm.json',
|
entryPoints: ['../handler/src/index.ts'],
|
||||||
// },
|
tsconfig: '../handler/tsconfig-esm.json',
|
||||||
// ]
|
},
|
||||||
// ]
|
] : []
|
||||||
|
]
|
||||||
};
|
};
|
||||||
|
|
||||||
module.exports = config;
|
module.exports = config;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
[build]
|
[build]
|
||||||
publish = "/build"
|
publish = "/build"
|
||||||
command = "npm run build"
|
command = "npm run build"
|
||||||
|
environment = { TEST = "yeah" }
|
||||||
|
|||||||
Reference in New Issue
Block a user