mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-08 21:10:05 +00:00
chore: new gh-pages action
This commit is contained in:
18
.github/workflows/generateDocs.yml
vendored
18
.github/workflows/generateDocs.yml
vendored
@@ -34,15 +34,11 @@ jobs:
|
|||||||
- name: Generate Docs
|
- name: Generate Docs
|
||||||
run: npm run typedoc
|
run: npm run typedoc
|
||||||
|
|
||||||
- name: Create CNAME file in docs
|
- name: Push generated docs
|
||||||
run: |
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
touch CNAME
|
with:
|
||||||
echo adapter.sasjs.io >> CNAME
|
github_token: ${{ secrets.GH_TOKEN }}
|
||||||
|
publish_branch: gh-pages
|
||||||
|
publish_dir: ./docs
|
||||||
|
cname: adapter.sasjs.io
|
||||||
|
|
||||||
- name: Push generated docs to docs branch
|
|
||||||
uses: nicholasgriffintn/github-branch-deployment-action@0.0.1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
BRANCH: gh-pages
|
|
||||||
FOLDER: docs
|
|
||||||
MESSAGE: 'Docs: ({sha}) {msg}'
|
|
||||||
|
|||||||
Reference in New Issue
Block a user