name: Build and Deploy on: push: branches: - master - develop schedule: - cron: '0 2 * * *' jobs: deploy: runs-on: self-hosted steps: - name: Checkout uses: actions/checkout@v4 - name: Build run: nix shell nixpkgs#mdbook --command ./deploy.sh build - name: Deploy run: nix shell nixpkgs#rsync --command ./deploy.sh local