Deploy #227
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |