@vighnalabs-packages/utilities 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,7 +2,7 @@ name: Deploy Production
|
|
|
2
2
|
|
|
3
3
|
on:
|
|
4
4
|
push:
|
|
5
|
-
branches: [
|
|
5
|
+
branches: [production]
|
|
6
6
|
|
|
7
7
|
jobs:
|
|
8
8
|
build-and-deploy:
|
|
@@ -14,4 +14,4 @@ jobs:
|
|
|
14
14
|
mkdir -p ~/.ssh
|
|
15
15
|
echo "${{ secrets.MAC_AIR_PRIVATE_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa
|
|
16
16
|
- name: Deploy to Server
|
|
17
|
-
run: ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.SH_USER }}@${{ secrets.DEBIAN_SERVER_IP }} 'cd vighnalabs/vighnalabs-packages/utilities/ && sh deploy.production.sh
|
|
17
|
+
run: ssh -o StrictHostKeyChecking=no -i ~/.ssh/id_rsa ${{ secrets.SH_USER }}@${{ secrets.DEBIAN_SERVER_IP }} 'cd vighnalabs/vighnalabs-packages/utilities/ && sh deploy.production.sh'
|
package/deploy.production.sh
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
|
-
echo "
|
|
2
|
+
echo "Started Production Deployment"
|
|
3
|
+
git checkout production
|
|
4
|
+
|
|
5
|
+
echo "Pulling Latest Code"
|
|
3
6
|
git pull --ff-only
|
|
4
7
|
|
|
5
|
-
echo "Installing
|
|
8
|
+
echo "Installing Dependencies"
|
|
6
9
|
npm install
|
|
7
10
|
|
|
8
|
-
echo "Running
|
|
11
|
+
echo "Running Deployment"
|
|
9
12
|
npm run deploy
|