Compare commits

..

No commits in common. "843abdf4f18908a7586c112986cf73c08f681186" and "81af267a29dc7351668225e6a68089e9d641bfb4" have entirely different histories.

2 changed files with 4 additions and 17 deletions

View File

@ -17,24 +17,12 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build
- name: Run build
run: npm run build
env:
NODE_OPTIONS: '--max-old-space-size=2048'
- name: Extract hostname from package.json
id: get-hostname
run: |
HOSTNAME=$(node -p "require('./package.json').deployHostname")
echo "hostname=$HOSTNAME" >> $GITHUB_OUTPUT
NODE_OPTIONS: "--max-old-space-size=2048"
- name: Deploy to nginx
run: |
DEPLOY_PATH="/var/www/localhost/${{ steps.get-hostname.outputs.hostname }}"
# Create directory if it doesn't exist
mkdir -p "$DEPLOY_PATH"
# Copy built files (overwrite existing)
cp -r dist/* "$DEPLOY_PATH/"
echo "Deployed to $DEPLOY_PATH"
rm -rf /var/www/localhost/space/*
cp -r dist/* /var/www/localhost/space/

View File

@ -1,6 +1,5 @@
{
"name": "space-game",
"deployHostname": "space.digital-experiment.com",
"private": false,
"version": "0.0.1",
"type": "module",