Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 13 additions & 32 deletions .github/workflows/deploy_neocities.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Deploy to neocities

on: [workflow_dispatch, push]
on:
workflow_dispatch:
push:
branches:
- main

concurrency: # prevent concurrent deploys doing strange things
group: deploy-to-neocities
Expand All @@ -10,7 +14,6 @@ jobs:
# https://gist.github.com/AndrewLester/2d3e6257d932831756226ca9a281d9b5
build_site:
runs-on: ubuntu-latest
if: ${{ contains(github.event.head_commit.message, '!UPD8') || github.event_name == 'workflow_dispatch' }}

steps:
- name: Checkout
Expand All @@ -23,51 +26,29 @@ jobs:
git pull --recurse-submodules
git submodule update --remote --recursive

- name: Install Nix
uses: cachix/install-nix-action@v31


# If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
# - name: Install pnpm
# uses: pnpm/action-setup@v3
# with:
# version: 8

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm

- name: Install dependencies
run: npm install
# - name: Install wasm-pack
# uses: jetli/wasm-pack-action@v0.4.0
# with:
# version: 'latest'

- name: build
uses: cachix/install-nix-action@v31
env:
BASE_PATH: '/${{ github.event.repository.name }}'
run: |
npm run build
- name: Authenticate
uses: oleksiyrudenko/gha-git-credentials@v2-latest
with:
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Commit changes
run: |
git add -A
git commit -m "Automatically build site"
git push
nix build
mkdir -p public/
cp -r result/* public/

# deploy:
# needs: build_site
# runs-on: ubuntu-latest
# if: ${{ contains(github.event.head_commit.message, '!UPD8') || github.event_name == 'workflow_dispatch' }}
# steps:

- name: Deploy to neocities
if: ${{ success() || failure() }}
uses: bcomnes/deploy-to-neocities@v1.1.9
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: false
dist_dir: public
dist_dir: result
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ node_modules
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
/result
33 changes: 25 additions & 8 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{

description = "";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
Expand All @@ -7,17 +10,31 @@
flake-utils.lib.eachDefaultSystem
(system:
let
overlays = [ ];
pkgs = import nixpkgs {
inherit system overlays;
};
pkgs = import nixpkgs { inherit system; };
nativeBuildInputs = with pkgs; [
wasm-pack
nodejs
];
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
wasm-pack
];
packages.default = buildNpmPackage {
pname = "deep-freezer";
version = "1.0.0";

nativeBuildInputs = nativeBuildInputs;

src = ./.;

npmDepsHash = "sha256-aX5sIAfW+9d7pPg9FBjiiSGNjbKE2KoE97tKtKMXDKA=";

npmBuild = ''
npm run build
'';
installPhase = ''
mkdir -p $out
cp -r public/* $out
'';
};
}
);
Expand Down
Binary file removed public/ButtonToggle.png
Binary file not shown.
Binary file removed public/ButtonToggleSlider.png
Binary file not shown.
1 change: 0 additions & 1 deletion public/_app/env.js

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/12.DVoKC6fD.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/13.CaOLp-Yy.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/16.BzofsrWt.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/2.DenuX07o.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/3.ZRlRIiNG.css

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion public/_app/immutable/assets/8.HlJpdsa1.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/9.DsOj0O0R.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/Box.CE-fN9k1.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/Navigation.C8OD8Ft-.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/_layout.CifQbGgN.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/_layout.DenuX07o.css

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion public/_app/immutable/assets/_page.BzofsrWt.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/_page.CaOLp-Yy.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/_page.DVoKC6fD.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/_page.DsOj0O0R.css

This file was deleted.

1 change: 0 additions & 1 deletion public/_app/immutable/assets/_page.MAjhx0ea.css

This file was deleted.

Loading