diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml new file mode 100644 index 0000000..5e7f10f --- /dev/null +++ b/.forgejo/workflows/main.yml @@ -0,0 +1,17 @@ +on: + push: + branches: ["main"] + workflow_dispatch: + +jobs: + deploy: + runs-on: native + steps: + - name: Checkout + run: git clone --depth 1 ${{ github.server_url }}/${{ github.repository }} . + # - name: Check + # run: nix flake check + - name: Build + run: nix run . + - name: Deploy + run: cp -r public/. /var/www/jankremer.de/ diff --git a/content/blog/github.md b/content/blog/github.md deleted file mode 100644 index 9f6d0c7..0000000 --- a/content/blog/github.md +++ /dev/null @@ -1,9 +0,0 @@ -+++ -title = "Leaving GitHub" -date = 2026-03-27 -description = "" -tags = [] -draft = true -+++ - -About a year ago I wrote a post about my self hosting journey which ended with me shutting down my server diff --git a/content/blog/leaving-github.md b/content/blog/leaving-github.md new file mode 100644 index 0000000..137f262 --- /dev/null +++ b/content/blog/leaving-github.md @@ -0,0 +1,8 @@ ++++ +title = "Leaving GitHub" +date = 2026-03-27 +description = "" +tags = [ "git" ] ++++ + +As is trendy right now, I too took my repositories off of GitHub. The last piece was this website, which I hosted on GitHub Pages, but now runs on Oracle Free Tier. Not really sure this is better, but that's what I'm trying for now and I can always move it somewhere else easily. I'm also self hosting [Forgejo](https://git.jankremer.de) where I will be sharing my code from now on. diff --git a/flake.nix b/flake.nix index 424ac44..9d0b7c6 100644 --- a/flake.nix +++ b/flake.nix @@ -36,6 +36,11 @@ checks = eachSystem (pkgs: { formatting = treefmtEval.${pkgs.system}.config.build.check self; + zola = pkgs.runCommand "zola-check" { buildInputs = [ pkgs.zola ]; } '' + cp -r ${self}/. . + zola check + touch $out + ''; }); apps = eachSystem (pkgs: { @@ -52,20 +57,6 @@ ${pkgs.zola}/bin/zola build --minify '').outPath; }; - deploy = { - type = "app"; - meta = { - description = "Deploy to nimbus (Oracle)"; - homepage = "https://jankremer.de"; - license = nixpkgs.lib.licenses.cc0; - }; - program = - (pkgs.writeShellScript "deploy-website" '' - set -e - ${pkgs.zola}/bin/zola build --minify - ${pkgs.rsync}/bin/rsync -avP --delete public/ jan@jankremer.de:/var/www/jankremer.de/ - '').outPath; - }; }); }; }