Skip to content

Commit 25a23cd

Browse files
committed
feat: Limit what we deploy to only the built contents
1 parent 42ebe79 commit 25a23cd

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.github/workflows/deploy-dev.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,9 @@ jobs:
4040
run: npm install -g [email protected]
4141
- name: Deploy to dev
4242
run: |
43-
rm -rf node_modules # Clean up node_modules, harper will install
43+
mkdir deploy
44+
cp config.yaml deploy/
45+
mv web deploy/
46+
cd deploy
47+
echo "{}" > package.json
4448
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME_DEV }} CLI_TARGET_PASSWORD='${{ secrets.HARPERDB_CLI_TARGET_PASSWORD_DEV }}' harperdb deploy target='${{ secrets.CLI_DEPLOY_TARGET_DEV }}' restart=true

.github/workflows/deploy-prod.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@ jobs:
4242
run: npm install -g [email protected]
4343
- name: Deploy to prod
4444
run: |
45-
rm -rf node_modules # Clean up node_modules, harper will install
45+
mkdir deploy
46+
cp config.yaml deploy/
47+
mv web deploy/
48+
cd deploy
49+
echo "{}" > package.json
4650
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME_PROD }} CLI_TARGET_PASSWORD='${{ secrets.HARPERDB_CLI_TARGET_PASSWORD_PROD }}' harperdb deploy target='${{ secrets.CLI_DEPLOY_TARGET_PROD }}' restart=true

.github/workflows/deploy-stage.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ jobs:
5959
- name: Deploy to stage
6060
if: ${{ github.event_name == 'push' }}
6161
run: |
62-
rm -rf node_modules # Clean up node_modules, harper will install
62+
mkdir deploy
63+
cp config.yaml deploy/
64+
mv web deploy/
65+
cd deploy
6366
echo "{}" > package.json
6467
CLI_TARGET_USERNAME=${{ secrets.CLI_TARGET_USERNAME }} CLI_TARGET_PASSWORD='${{ secrets.HARPERDB_CLI_TARGET_PASSWORD }}' harperdb deploy target='${{ secrets.CLI_DEPLOY_TARGET }}' restart=true

config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ static:
22
files: web/**
33
index: true
44
extensions: ["html"]
5-
notFound:
6-
- file: index.html
7-
- code: 200

0 commit comments

Comments
 (0)