Kellnr release 5.8.0 #4
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: Deploy Website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Nix | |
| uses: cachix/install-nix-action@v24 | |
| with: | |
| nix_path: nixpkgs=channel:nixos-unstable | |
| extra_nix_config: | | |
| experimental-features = nix-command flakes | |
| - name: Deploy to Server | |
| run: | | |
| nix run .#deploy -- ${{ secrets.REMOTE_PASSWORD }} | |
| - name: Deployment Success | |
| if: success() | |
| run: | | |
| echo "Deployment completed successfully!" | |
| echo "Website deployed to: https://kellnr.io" | |
| - name: Deployment Failed | |
| if: failure() | |
| run: | | |
| echo "❌ Deployment failed!" | |
| echo "Check the logs above for details." |