diff --git a/.github/workflows/main_poweron-nyla.yml b/.github/workflows/main_poweron-nyla.yml index e28a58a..e7109c4 100644 --- a/.github/workflows/main_poweron-nyla.yml +++ b/.github/workflows/main_poweron-nyla.yml @@ -4,6 +4,7 @@ on: push: branches: - main # oder dein Branch + workflow_dispatch: # Ermöglicht manuelles Triggern jobs: build-and-deploy: @@ -16,18 +17,20 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '18' # passend zu deiner Node-Version + node-version: '18' + cache: 'npm' # Aktiviert Caching für schnellere Builds - name: Install dependencies - run: npm ci # oder npm install, wenn du kein package-lock.json hast + run: npm ci # Nutzt package-lock.json für deterministische Installs - name: Build React app run: npm run build + env: + CI: false # Verhindert, dass Warnungen den Build stoppen - - name: 'Deploy to Azure Web App' uses: azure/webapps-deploy@v3 - id: deploy-to-webapp with: app-name: 'poweron-nyla' publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D6C9359A57C5448A8C0BFA2D4C4B2068 }} + package: ./build # Spezifiziert den Build-Ordner der React-App