diff --git a/mise.toml b/mise.toml --- a/mise.toml +++ b/mise.toml @@ -1,5 +1,6 @@ [tools] deno = "latest" +"github:sass/dart-sass" = "latest" watchexec = "latest" zig = "0.15.2" diff --git a/.tangled/old-workflows/build.yml b/.tangled/old-workflows/build.yml new file mode 100644 --- /dev/null +++ b/.tangled/old-workflows/build.yml @@ -0,0 +1,25 @@ +when: + - event: ["push", "pull_request"] + branch: ["*"] + +engine: nixery + +dependencies: + nixpkgs: + - curl + - dart-sass + - deno + - mise + - which + - zip + +steps: + - name: Setup mise + command: | + mise trust + mise link deno@latest $(dirname $(dirname $(readlink -f $(which deno)))) + mise exec zig -- zig version + mise exec deno -- deno --version + - name: Build website + command: | + mise run dist diff --git a/.tangled/old-workflows/deploy.yml b/.tangled/old-workflows/deploy.yml new file mode 100644 --- /dev/null +++ b/.tangled/old-workflows/deploy.yml @@ -0,0 +1,33 @@ +when: + - event: ["push"] + branch: ["main"] + tag: ["v*"] + +engine: nixery + +dependencies: + nixpkgs: + - curl + - dart-sass + - deno + - mise + - which + - zip + +steps: + - name: Setup mise + command: | + mise trust + mise link deno@latest $(dirname $(dirname $(readlink -f $(which deno)))) + mise exec zig -- zig version + mise exec deno -- deno --version + - name: Setup statichost cli + command: | + curl -so shcli https://www.statichost.eu/shcli + chmod +x shcli + - name: Build website + command: | + mise run dist + - name: Upload + command: | + ./shcli altagos-dev ./zig-out/website diff --git a/.tangled/workflows/build.yml b/.tangled/workflows/build.yml deleted file mode 100644 --- a/.tangled/workflows/build.yml +++ /dev/null @@ -1,25 +0,0 @@ -when: - - event: ["push", "pull_request"] - branch: ["*"] - -engine: nixery - -dependencies: - nixpkgs: - - curl - - dart-sass - - deno - - mise - - which - - zip - -steps: - - name: Setup mise - command: | - mise trust - mise link deno@latest $(dirname $(dirname $(readlink -f $(which deno)))) - mise exec zig -- zig version - mise exec deno -- deno --version - - name: Build website - command: | - mise run dist diff --git a/.tangled/workflows/deploy.yml b/.tangled/workflows/deploy.yml deleted file mode 100644 --- a/.tangled/workflows/deploy.yml +++ /dev/null @@ -1,33 +0,0 @@ -when: - - event: ["push"] - branch: ["main"] - tag: ["v*"] - -engine: nixery - -dependencies: - nixpkgs: - - curl - - dart-sass - - deno - - mise - - which - - zip - -steps: - - name: Setup mise - command: | - mise trust - mise link deno@latest $(dirname $(dirname $(readlink -f $(which deno)))) - mise exec zig -- zig version - mise exec deno -- deno --version - - name: Setup statichost cli - command: | - curl -so shcli https://www.statichost.eu/shcli - chmod +x shcli - - name: Build website - command: | - mise run dist - - name: Upload - command: | - ./shcli altagos-dev ./zig-out/website