package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.8 KiB

4 years ago
name: Deploy
on:
push:
branches:
- master
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v1
4 years ago
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
4 years ago
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
4 years ago
- name: Installation
run: |
4 years ago
sudo apt update -y
4 years ago
sudo apt install -y wget
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4-linux-x64.tar.xz
tar -xvf node-v14.15.4-linux-x64.tar.xz
export PATH=`pwd`/node-v14.15.4-linux-x64/bin:$PATH
4 years ago
sudo npm install markdown-to-html -g
4 years ago
- name: Publish documents
4 years ago
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
4 years ago
xmake l -vD `pwd`/build.lua
git config --global user.email "waruqi@gmail.com"
git config --global user.name "ruki"
git status
4 years ago
git add -A
git diff-index --quiet HEAD || git commit -m "autoupdate docs by xmake-repo/ci"
4 years ago
git push all master
4 years ago
- name: Build artifacts
9 months ago
if: ${{ github.repository }} == "xmake-io/xmake-repo"
4 years ago
run: |
xmake l scripts/build_artifacts.lua
4 years ago