Skip to content

Commit

Permalink
build: use temporary build path
Browse files Browse the repository at this point in the history
Closes: #1276
  • Loading branch information
aalemayhu committed Oct 22, 2023
1 parent 5f8c639 commit 6795086
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.2anki.net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
mkdir -pv /tmp/workspaces
node --version
TMP_BUILD_DIR=`mktemp`
WEB_DIR=~/src/github.com/2anki/web
CREATE_DECK_DIR=~/src/github.com/2anki/create_deck
SERVER_DIR=~/src/github.com/2anki/2anki.net
Expand All @@ -37,7 +38,8 @@ jobs:
pip install -r ${CREATE_DECK_DIR}/requirements.txt
npm --prefix ${SERVER_DIR} run build
npm --prefix ${WEB_DIR} run build
BUILD_PATH=${TMP_BUILD_DIR} npm --prefix ${WEB_DIR} run build
rsync -avh ${TMP_BUILD_DIR} ${WEB_DIR} --delete
cd ${SERVER_DIR}/..
pm2 restart server

0 comments on commit 6795086

Please sign in to comment.