Update build.yml

This commit is contained in:
bip production
2025-02-23 11:00:14 +08:00
committed by GitHub
parent b97f6f17d2
commit c61e689826

View File

@@ -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