dotfiles

My PC Dotfiles & Website
commit 2b9f7d0c708b0194b11f08c824fad95bf6308821
parent 369fb57eb7dda6d6ffa0453da84d3210ff7399aa
Author: maydayv7 <maydayv7@gmail.com>
Date:   Thu,  1 Jan 2026 00:27:53 +0530

ci(site): Deploy with GitHub Actions

Diffstat:

A.github/workflows/website.yml | 42++++++++++++++++++++++++++++++++++++++++++
MCHANGELOG.md | 2++
MREADME.md | 2+-
Mpackages/patches/stremio.patch | 11++++-------
Msite/README.md | 10+++++++---
Rsite/worker.js -> site/index.js | 0
Dsite/package.json | 7-------
Msite/wrangler.toml | 15+++++++++++----
8 files changed, 67 insertions(+), 22 deletions(-)

diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml @@ -0,0 +1,42 @@ +name: "ci: Build and Deploy Site" +on: + push: + branches: + - stable + paths: + - "site/**" + pull_request: + paths: + - "site/**" +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Clone Repo + uses: actions/checkout@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + fetch-depth: 0 + - name: Install Nix + uses: cachix/install-nix-action@v31 + with: + extra_nix_config: | + experimental-features = nix-command flakes + accept-flake-config = true + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - name: Build Zola Site + run: nix build .#website + - name: Prepare for Deployment + run: | + rm -rf site/public + mkdir -p site/public + cp -rL result/* site/public/ + - name: Deploy to Cloudflare + uses: cloudflare/wrangler-action@v3 + with: + workingDirectory: "site" + wranglerVersion: "latest" + command: deploy ${{ github.ref == 'refs/heads/stable' && '--env production' || '' }} + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} + gitHubToken: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md @@ -2,6 +2,8 @@ ### December +- Deploy `site` to Cloudflare + - Drop GitHub Pages and Netlify - Use `stevenblack` blocklist - Refactor `hardware.gpu` and add `hardware.cpu.model` - Use `swaync` instead of `dunst` diff --git a/README.md b/README.md @@ -521,6 +521,6 @@ _Thanks a lot! ;)_ </details> -> Last Updated: **December** 2025 +> Last Updated: **January** 2026 If you like this project, consider leaving a [star](https://github.com/maydayv7/dotfiles) diff --git a/packages/patches/stremio.patch b/packages/patches/stremio.patch @@ -1,11 +1,7 @@ -https://github.com/NixOS/nixpkgs/pull/468728 ---- -diff --git a/pkgs/by-name/st/stremio-linux-shell/package.nix b/pkgs/by-name/st/stremio-linux-shell/package.nix -new file mode 100644 -index 0000000000000..fcfbf9460f107 +# https://github.com/NixOS/nixpkgs/pull/468728 --- /dev/null +++ b/pkgs/by-name/st/stremio-linux-shell/package.nix -@@ -0,0 +1,129 @@ +@@ -0,0 +1,130 @@ +{ + lib, + symlinkJoin, @@ -29,6 +25,7 @@ index 0000000000000..fcfbf9460f107 + + # Wrapper + libGL, ++ libxkbcommon, + nodejs, +}: + @@ -109,7 +106,7 @@ index 0000000000000..fcfbf9460f107 + preFixup = '' + gappsWrapperArgs+=( + --prefix LD_LIBRARY_PATH : "/run/opengl-driver/lib" \ -+ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL ]}" \ ++ --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ libGL libxkbcommon ]}" \ + --prefix PATH : "${lib.makeBinPath [ nodejs ]}" + ) + ''; diff --git a/site/README.md b/site/README.md @@ -2,8 +2,8 @@ [![website](../files/images/website.png)](https://maydayv7.cc) -Generated using [Zola](https://www.getzola.org/), Deployed via [Nix](https://nixos.org/) and [Cloudflare](https://www.cloudflare.com/) - +Built with [Zola](https://www.getzola.org/) +Deployed via [Nix](https://nixos.org/) and [Cloudflare](https://www.cloudflare.com/) Hosted at [maydayv7.cc](https://maydayv7.cc) ### Build @@ -20,7 +20,11 @@ zola -r site serve Then click [here](http://localhost:1111) To build the site, run `nix build`. -To override the URL, run <code>nix build --impure --expr "with import ../packages; callPackage ./site { site = <b><i>URL</i></b>; }"</code> +To override the URL, run: <pre><code>nix build --impure --expr "with import ../packages; callPackage ./site { site = <b><i>URL</i></b>; }"</code></pre> + +#### Continuous Integration + +[`GitHub Actions`](../checks/github/workflows/website.yml) is used in order to automatically build the site and deploy it to Cloudflare ### Features diff --git a/site/worker.js b/site/index.js diff --git a/site/package.json b/site/package.json @@ -1,7 +0,0 @@ -{ - "name": "maydayv7-site", - "version": "1.0.0", - "scripts": { - "build": "asdf plugin add zola https://github.com/salasrod/asdf-zola && asdf install zola latest && asdf global zola latest && zola build" - } -} diff --git a/site/wrangler.toml b/site/wrangler.toml @@ -1,8 +1,15 @@ -#:schema node_modules/wrangler/config-schema.json name = "site" -main = "worker.js" -compatibility_date = "2024-01-01" +main = "index.js" +compatibility_date = "2025-12-15" [assets] -directory = "./public" binding = "ASSETS" +directory = "./public" +not_found_handling = "404-page" +run_worker_first = true + +[env.production] +routes = [ + { pattern = "maydayv7.cc", custom_domain = true }, + { pattern = "www.maydayv7.cc", custom_domain = true } +]