Skip to content

Commit 7a2e05f

Browse files
committed
fix: Try being sneaky with the deploy
1 parent c29df86 commit 7a2e05f

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/deploy-dev.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,14 @@ jobs:
4141
- name: Deploy to dev
4242
run: |
4343
mkdir deploy
44-
cp config.yaml deploy/
45-
mv web deploy/
44+
DEPLOY_ID=$(date +%s)
45+
mv web "deploy/$(DEPLOY_ID)"
4646
cd deploy
4747
echo "{}" > package.json
48-
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME_DEV }} CLI_TARGET_PASSWORD='${{ secrets.HARPERDB_CLI_TARGET_PASSWORD_DEV }}' pnpm harperdb deploy project='hdbms' target='${{ secrets.CLI_DEPLOY_TARGET_DEV }}' restart=true
48+
mkdir node_modules
49+
touch config.yaml
50+
echo "static:" >> config.yaml
51+
echo " files: ${DEPLOY_ID}/**" >> config.yaml
52+
echo " index: true" >> config.yaml
53+
echo " extensions: ["html"]" >> config.yaml
54+
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME_DEV }} CLI_TARGET_PASSWORD='${{ secrets.HARPERDB_CLI_TARGET_PASSWORD_DEV }}' pnpm harperdb deploy project=hdbms target='${{ secrets.CLI_DEPLOY_TARGET_DEV }}'

config.yaml

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)