2025 11 12 bod notes (#24) #74
This file contains hidden or 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: Build and Deploy Docs | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| check-flake: | |
| runs-on: ci-ocf-mkdocs | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: DeterminateSystems/flake-checker-action@v9 | |
| build_and_deploy: | |
| runs-on: ci-ocf-mkdocs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build with Nix | |
| run: nix build | |
| - name: Setup SSH keys | |
| run: | | |
| echo '${{ secrets.BESTDOCS_DEPLOY_PRIVKEY }}' > id_ed25519 | |
| chmod 400 id_ed25519 | |
| echo "amethyst.ocf.berkeley.edu ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIIlmVSSUC4PTOzfMvsHbUVr1e+7GLXvIPx1tX+W3CIU1" > known_hosts | |
| chmod 400 known_hosts | |
| - name: Deploy with rsync | |
| run: nix develop .#deploy -c rsync -e "ssh -v -o UserKnownHostsFile=known_hosts -i id_ed25519" --verbose --compress --partial --checksum --progress --human-readable --archive --delete result/ [email protected]:/var/www/bestdocs | |