ci: Create deploy workflow

Signed-off-by: Naomi Roberts <mia@naomieow.xyz>

lesbian.skin 997f8627 cda13069

verified
Changed files
+69
.tangled
workflows
+1
.envrc
··· 1 + use flake
+1
.gitignore
··· 2 2 out/ 3 3 priv/ 4 4 node_modules/ 5 + .direnv/
+15
.tangled/workflows/deploy.yaml
··· 1 + when: 2 + - event: ["push", "pull_request"] 3 + branch: "main" 4 + 5 + dependencies: 6 + nixpkgs: 7 + - nodejs 8 + 9 + steps: 10 + - name: build site 11 + command: | 12 + nix develop --command bash -c 'gleam run -m build' 13 + - name: deploy 14 + command: | 15 + npx --yes wrangler pages deploy ./priv --project-name naomieow-site
+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1754340878, 6 + "narHash": "sha256-lgmUyVQL9tSnvvIvBp7x1euhkkCho7n3TMzgjdvgPoU=", 7 + "owner": "NixOS", 8 + "repo": "nixpkgs", 9 + "rev": "cab778239e705082fe97bb4990e0d24c50924c04", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "NixOS", 14 + "ref": "nixpkgs-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+25
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; 4 + }; 5 + 6 + outputs = {nixpkgs, ...} @ inputs: let 7 + lib = nixpkgs.lib; 8 + supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"]; 9 + forEachSupportedSystem = f: 10 + lib.genAttrs supportedSystems (system: 11 + f { 12 + pkgs = import nixpkgs {inherit system;}; 13 + }); 14 + in { 15 + devShells = forEachSupportedSystem ({pkgs}: { 16 + default = pkgs.mkShell { 17 + packages = with pkgs; [ 18 + gleam 19 + erlang_28 20 + beam28Packages.rebar3 21 + ]; 22 + }; 23 + }); 24 + }; 25 + }