# Deploy to Wisp.place # This workflow builds your site and deploys it to Wisp.place using the wisp-cli when: - event: ['push'] branch: ['main'] - event: ['manual'] engine: 'nixery' clone: skip: false depth: 1 submodules: true dependencies: nixpkgs: - git - gcc github:NixOS/nixpkgs/nixpkgs-unstable: - rustc - cargo environment: # Customize these for your project SITE_PATH: 'testDeploy' SITE_NAME: 'wispPlaceDocs' steps: - name: 'Initialize submodules' command: | git submodule update --init --recursive - name: 'Build wisp-cli' command: | cd cli export PATH="$HOME/.nix-profile/bin:$PATH" nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs nix-channel --update nix-shell -p pkg-config openssl --run ' export PKG_CONFIG_PATH="$(pkg-config --variable pc_path pkg-config)" export OPENSSL_DIR="$(nix-build --no-out-link "" -A openssl.dev)" export OPENSSL_NO_VENDOR=1 export OPENSSL_LIB_DIR="$(nix-build --no-out-link "" -A openssl.out)/lib" cargo build --release ' cd .. - name: 'Deploy to Wisp.place' command: | ./cli/target/release/wisp-cli \ "$WISP_HANDLE" \ --path "$SITE_PATH" \ --site "$SITE_NAME" \ --password "$WISP_APP_PASSWORD"