This commit is contained in:
Dmitry 2025-11-21 03:21:48 +03:00
parent 7c6ca4bd71
commit a8716ccb24
2 changed files with 24 additions and 1 deletions

View file

@ -19,6 +19,19 @@ jobs:
timeout-minutes: 360 # 6 hours
steps:
- name: Install Node.js
run: |
# Try to install nodejs if missing (required for actions)
if ! command -v node &> /dev/null; then
echo "Node.js not found, installing..."
# Check if running as root
if [ "$(id -u)" -eq 0 ]; then
apt-get update && apt-get install -y nodejs npm
else
sudo apt-get update && sudo apt-get install -y nodejs npm
fi
fi
- name: Checkout repository
uses: actions/checkout@v4
with:

View file

@ -53,10 +53,20 @@ jobs:
deploy-web:
name: Deploy Web App
runs-on: ubuntu-latest
container: ghcr.io/cirruslabs/flutter::3.35.5
container: ghcr.io/cirruslabs/flutter:3.35.5
needs: deploy-backend
if: always()
steps:
- name: Install Node.js
run: |
if ! command -v node &> /dev/null; then
if [ "$(id -u)" -eq 0 ]; then
apt-get update && apt-get install -y nodejs npm
else
sudo apt-get update && sudo apt-get install -y nodejs npm
fi
fi
- name: Checkout code
uses: actions/checkout@v3
with: