Skip to content

Commit

Permalink
ci(deploy): remove themes from source, generate in ci (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
uncenter authored Jan 18, 2025
1 parent ef960a5 commit 217ddb3
Show file tree
Hide file tree
Showing 123 changed files with 14 additions and 9,665 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Setup Deno
uses: nekowinston/setup-deno@main
with:
deno-version: v2.1.5

- name: Build themes
run: deno task build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./"
path: "./dist"

- name: Deploy artifact to GitHub Pages
id: deploy
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
8 changes: 4 additions & 4 deletions src/build.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import less from "npm:less";
import { join } from "std/path/mod.ts";
import { join, dirname } from "std/path/mod.ts";
import { flavorEntries } from "npm:@catppuccin/palette@1.1.0";

const THEME_DIR = join(import.meta.dirname as string, "../themes/");
const THEME_DIR = join(import.meta.dirname as string, "../dist/themes/");
const DEFAULT_ACCENT = "mauve";

await Deno.remove(THEME_DIR, { recursive: true })
await Deno.remove(dirname(THEME_DIR), { recursive: true })
.catch(() => {})
.finally(() => Deno.mkdir(THEME_DIR));
.finally(() => Deno.mkdir(THEME_DIR, { recursive: true }));

const base = await Deno.readTextFile(
join(import.meta.dirname as string, "base.less")
Expand Down
79 changes: 0 additions & 79 deletions themes/frappe-blue-no-loader.css

This file was deleted.

82 changes: 0 additions & 82 deletions themes/frappe-blue.css

This file was deleted.

79 changes: 0 additions & 79 deletions themes/frappe-flamingo-no-loader.css

This file was deleted.

82 changes: 0 additions & 82 deletions themes/frappe-flamingo.css

This file was deleted.

Loading

0 comments on commit 217ddb3

Please sign in to comment.