test2
This commit is contained in:
parent
0b3ed2fa0e
commit
080e5e16fa
1 changed files with 7 additions and 4 deletions
11
.github/workflows/main_poweron-nyla.yml
vendored
11
.github/workflows/main_poweron-nyla.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue