Skip to content

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
introkun committed Mar 27, 2024
1 parent ceb32b0 commit 3b24436
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,19 @@ jobs:
appName=oculus-deals-spider
appDir=/opt/$appName
tempDir=$(mktemp -d /opt/oculus-deals-spider.XXXXXXXXX)
mkdir $tempDir
tempDir=$(mktemp -d /tmp/oculus-deals-spider.XXXXXXXXX)
rm -rf "$tempDir" # Remove existing temp directory if it exists
mkdir -p "$tempDir" # Recreate temp directory
cd $tempDir
git clone [email protected]:introkun/oculus-deals-spider.git .
echo "Installing app dependencies"
npm ci
echo "Writing config wile"
echo "${{secrets.CONFIG}}" > config/production.json
echo "${{vars.PROD_CONFIG}}" > config/production.json
echo "Renaming current app folder"
mv $appDir $appDir.$(date +\%Y\%m\%d\%H\%M\%S)
Expand Down

0 comments on commit 3b24436

Please sign in to comment.