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: "."
|
||||
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
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
@@ -138,12 +138,8 @@ jobs:
|
||||
key: ${{ secrets.VPS_SSH_KEY }}
|
||||
script: |
|
||||
|
||||
# Install Bun if not already installed
|
||||
if ! command -v bun &> /dev/null; then
|
||||
echo "Bun is not installed. Installing now..."
|
||||
curl -fsSL https://bun.sh/install | bash
|
||||
export PATH="$HOME/.bun/bin:$PATH"
|
||||
fi
|
||||
# Ensure ~/.bashrc is sourced
|
||||
source ~/.bashrc
|
||||
|
||||
# Install PM2 if not already installed
|
||||
if ! command -v pm2 &> /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user