Merge pull request #409 from gosub-browser/dependabot/cargo/anyhow-1.… #199
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: GoSub Docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: doc | |
args: --no-deps | |
- name: SSH setup | |
run: | | |
mkdir -p ~/.ssh | |
echo "$SSH_DEPLOY_KEY" > ~/.ssh/id_ed25519 | |
chmod 600 ~/.ssh/id_ed25519 | |
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts | |
env: | |
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}} | |
SSH_DEPLOY_KEY: ${{secrets.SSH_DEPLOY_KEY}} | |
- name: create main index.html | |
run: | | |
echo "<meta http-equiv=\"refresh\" content=\"0; url=https://docs.developer.gosub.io/gosub_engine/index.html\" />" > target/doc/index.html | |
- name: Rsync | |
run: rsync -avz target/doc/ [email protected]:/wwwroot/docs.developer.gosub.io/public |