mirror of
https://github.com/sasjs/core.git
synced 2026-06-10 12:40:21 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 98bd198dfc | |||
| 15e3a560b0 | |||
| 7448252b22 | |||
| 1fb52d5f73 |
@@ -69,5 +69,22 @@ jobs:
|
|||||||
- name: Update Docs Site
|
- name: Update Docs Site
|
||||||
if: steps.makerelease.outputs.new_release_published == 'true'
|
if: steps.makerelease.outputs.new_release_published == 'true'
|
||||||
run: |
|
run: |
|
||||||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
sudo apt-get update
|
||||||
npm run docs
|
sudo apt-get install -y doxygen
|
||||||
|
npx @sasjs/cli doc -t docsonly
|
||||||
|
git clone https://x-access-token:${{ secrets.CORESASJSIO_PAT }}@github.com/sasjs/core.github.io.git
|
||||||
|
cd core.github.io
|
||||||
|
rm -rf *.html
|
||||||
|
rm -rf *.js
|
||||||
|
rm -rf *.png
|
||||||
|
rm -rf *.dot
|
||||||
|
rm -rf *.css
|
||||||
|
rm -rf *.svg
|
||||||
|
rm -rf search
|
||||||
|
cp -R ../sasjsbuild/docs/* .
|
||||||
|
git config user.name sasjs
|
||||||
|
echo 'core.sasjs.io' > CNAME
|
||||||
|
git add .
|
||||||
|
git commit -m "core pipeline build on $(date +%F:%H:%M:%S)"
|
||||||
|
git push
|
||||||
|
echo "check it out: https://sasjs.github.io/core.github.io/files.html"
|
||||||
|
|||||||
+5
-2
@@ -31,5 +31,8 @@
|
|||||||
"test": "npx @sasjs/cli test -t server",
|
"test": "npx @sasjs/cli test -t server",
|
||||||
"lint": "npx @sasjs/cli lint",
|
"lint": "npx @sasjs/cli lint",
|
||||||
"prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true"
|
"prepare": "git rev-parse --git-dir && git config core.hooksPath ./.git-hooks || true"
|
||||||
}
|
},
|
||||||
}
|
"maintainers": [
|
||||||
|
"https://sasapps.io"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
# refresh github pages site
|
# refresh github pages site
|
||||||
rm -rf sasjsbuild/docsite
|
rm -rf sasjsbuild/docsite
|
||||||
git clone https://x-access-token:$GITHUB_TOKEN@github.com/sasjs/core.github.io.git sasjsbuild/docsite
|
git clone git@github.com:sasjs/core.github.io.git sasjsbuild/docsite
|
||||||
rm -rf sasjsbuild/docsite/*.html
|
rm -rf sasjsbuild/docsite/*.html
|
||||||
rm -rf sasjsbuild/docsite/*.js
|
rm -rf sasjsbuild/docsite/*.js
|
||||||
rm -rf sasjsbuild/docsite/*.png
|
rm -rf sasjsbuild/docsite/*.png
|
||||||
|
|||||||
Reference in New Issue
Block a user