repos / neovimcraft

website that makes it easy to find neovim plugins
git clone https://github.com/neurosnap/neovimcraft.git

commit
8eeaa0a
parent
b70433e
author
Eric Bower
date
2023-08-16 18:34:25 +0000 UTC
fix: deploy cleanup
3 files changed,  +4, -3
M .github/workflows/deploy.yml
+1, -2
 1@@ -19,7 +19,6 @@ jobs:
 2         deno-version: "~1.28"
 3     - run: make scrape
 4     - run: make build
 5-    - run: cp ./data/db.json ./static/db.json
 6 
 7     - name: Set outputs
 8       id: vars
 9@@ -30,7 +29,7 @@ jobs:
10       with:
11         user: erock
12         key: ${{ secrets.PRIVATE_KEY }}
13-        src: './static/*'
14+        src: './public/*'
15         project: "neovimcraft-${{ steps.vars.outputs.sha_short }}"
16         promote: "neovimcraft"
17 
M Makefile
+2, -1
 1@@ -47,7 +47,8 @@ clean:
 2 
 3 build: clean
 4 	deno run --allow-write src/scripts/static.ts
 5-	cp ./static/* ./public
 6+	cp ./data/db.json ./public/db.json
 7+	cp -r ./static/* ./public
 8 .PHONY: build
 9 
10 upload:
M src/scripts/static.ts
+1, -0
1@@ -11,6 +11,7 @@ import { getResourceId } from "../entities.ts";
2 const OUTDIR = "./public";
3 
4 async function createFile(fname: string, data: string) {
5+  console.log(`Creating file ${fname}`);
6   await Deno.mkdir(dirname(fname), { recursive: true });
7   await Deno.writeTextFile(fname, data);
8 }