|
@@ -26,6 +26,11 @@ jobs:
|
|
name: id_rsa # optional
|
|
name: id_rsa # optional
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
known_hosts: ${{ secrets.KNOWN_HOSTS }}
|
|
|
|
|
|
|
|
+ - name: Installation
|
|
|
|
+ run: |
|
|
|
|
+ sudo apt-get install -y nodejs npm
|
|
|
|
+ sudo npm install markdown-to-html -g
|
|
|
|
+
|
|
- name: Publish
|
|
- name: Publish
|
|
run: |
|
|
run: |
|
|
git clone [email protected]:xmake-io/xrepo-docs.git
|
|
git clone [email protected]:xmake-io/xrepo-docs.git
|
|
@@ -34,8 +39,11 @@ jobs:
|
|
git remote set-url --add all [email protected]:waruqi/xrepo-docs.git
|
|
git remote set-url --add all [email protected]:waruqi/xrepo-docs.git
|
|
git remote set-url --add all [email protected]:xmake-io/xrepo-docs.git
|
|
git remote set-url --add all [email protected]:xmake-io/xrepo-docs.git
|
|
git remote set-url --add all [email protected]:xmake-io/xrepo-docs.git
|
|
git remote set-url --add all [email protected]:xmake-io/xrepo-docs.git
|
|
- xmake l -vD ./build.lua
|
|
|
|
- git commit -a -m "update docs"
|
|
|
|
|
|
+ xmake l -vD `pwd`/build.lua
|
|
|
|
+ git config --global user.email "[email protected]"
|
|
|
|
+ git config --global user.name "ruki"
|
|
|
|
+ git add -A
|
|
|
|
+ git diff-index --quiet HEAD || git commit -m "autoupdate docs by xmake-repo/ci"
|
|
git push all master
|
|
git push all master
|
|
|
|
|
|
|
|
|