Update build.yml
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -119,7 +119,7 @@ jobs:
|
|||||||
source: "."
|
source: "."
|
||||||
target: "/var/www/projects/${{ env.APP_NAME }}/releases/${{ env.APP_VERSION }}"
|
target: "/var/www/projects/${{ env.APP_NAME }}/releases/${{ env.APP_VERSION }}"
|
||||||
|
|
||||||
# Kirim file .env ke server
|
# Kirim file .env ke server
|
||||||
- name: Upload .env to server
|
- name: Upload .env to server
|
||||||
uses: appleboy/scp-action@master
|
uses: appleboy/scp-action@master
|
||||||
with:
|
with:
|
||||||
@@ -138,12 +138,8 @@ jobs:
|
|||||||
key: ${{ secrets.VPS_SSH_KEY }}
|
key: ${{ secrets.VPS_SSH_KEY }}
|
||||||
script: |
|
script: |
|
||||||
|
|
||||||
# Install Bun if not already installed
|
# Ensure ~/.bashrc is sourced
|
||||||
if ! command -v bun &> /dev/null; then
|
source ~/.bashrc
|
||||||
echo "Bun is not installed. Installing now..."
|
|
||||||
curl -fsSL https://bun.sh/install | bash
|
|
||||||
export PATH="$HOME/.bun/bin:$PATH"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Install PM2 if not already installed
|
# Install PM2 if not already installed
|
||||||
if ! command -v pm2 &> /dev/null; then
|
if ! command -v pm2 &> /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user