Skip to content

Deploy

Deploy #223

Workflow file for this run

name: Deploy
on: workflow_dispatch
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deploy
run: |
git config --global user.name 'James Chen'
git config --global user.email '[email protected]'
git clone --depth=1 https://github.com/turms-im/turms.git
npm --prefix ./turms/turms-docs i
npm --prefix ./turms/turms-docs run build
rm -rf docs
mv ./turms/turms-docs/src/.vitepress/dist docs
git add docs/\*
git commit -m "update docs"
git push