Merge pull request #1442 from klembot/develop #11
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: Publish Docs | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
jobs: | |
publish-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: peaceiris/actions-mdbook@v1 | |
with: | |
mdbook-version: 'latest' | |
- name: Build docs | |
run: cd docs/en && mdbook build | |
- name: Upload to twinery.org | |
run: | | |
mkdir ~/.ssh | |
echo "$RSYNC_PRIVATE_KEY" > ~/.ssh/id_rsa | |
chmod 600 ~/.ssh/id_rsa | |
ssh-keyscan -H twinery.org > ~/.ssh/known_hosts | |
rsync --chmod=775 --delete --omit-dir-times --recursive --verbose docs/en/book/* [email protected]:/var/www/html/reference/en | |
env: | |
RSYNC_PRIVATE_KEY: ${{ secrets.TWINERY_RSYNC_PRIVATE_KEY }} |