Merge pull request #2 from xmake-io/dev
commit
5b88136e5d
2 changed files with 50 additions and 1 deletions
@ -0,0 +1,49 @@ |
||||
name: Deploy |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- master |
||||
|
||||
jobs: |
||||
build: |
||||
strategy: |
||||
matrix: |
||||
os: [ubuntu-latest] |
||||
|
||||
runs-on: ${{ matrix.os }} |
||||
|
||||
steps: |
||||
- uses: actions/checkout@v1 |
||||
- uses: xmake-io/github-action-setup-xmake@v1 |
||||
with: |
||||
xmake-version: branch@dev |
||||
|
||||
- name: Install SSH key |
||||
uses: shimataro/ssh-key-action@v2 |
||||
with: |
||||
key: ${{ secrets.SSH_KEY }} |
||||
name: id_rsa # optional |
||||
known_hosts: ${{ secrets.KNOWN_HOSTS }} |
||||
|
||||
- name: Installation |
||||
run: | |
||||
sudo apt-get install -y nodejs npm |
||||
sudo npm install markdown-to-html -g |
||||
|
||||
- name: Publish |
||||
run: | |
||||
git clone git@github.com:xmake-io/xrepo-docs.git |
||||
cd xrepo-docs |
||||
git remote add all git@github.com:xmake-io/xrepo-docs.git |
||||
git remote set-url --add all git@github.com:waruqi/xrepo-docs.git |
||||
git remote set-url --add all git@gitee.com:xmake-io/xrepo-docs.git |
||||
git remote set-url --add all git@gitlab.com:xmake-io/xrepo-docs.git |
||||
xmake l -vD `pwd`/build.lua |
||||
git config --global user.email "waruqi@gmail.com" |
||||
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 |
||||
|
||||
|
Loading…
Reference in new issue