Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

docs: add clean output dir step

Minh14112091e30d3c19c1
diff --git a/.github/workflows/jan-docs.yml b/.github/workflows/jan-docs.yml
index 3e92903c5..e6cc0977b 100644
--- a/.github/workflows/jan-docs.yml
+++ b/.github/workflows/jan-docs.yml
@@ -53,6 +53,9 @@ jobs:
- name: Install dependencies
working-directory: docs
run: yarn install
+ - name: Clean output directory
+ working-directory: docs
+ run: rm -rf out/* .next/*
- name: Build website
working-directory: docs
run: export NODE_ENV=production && yarn build && cp _redirects out/_redirects && cp _headers out/_headers