test6
This commit is contained in:
parent
adbee5384f
commit
c62f0566af
1 changed files with 8 additions and 13 deletions
21
.github/workflows/main_poweron-nyla.yml
vendored
21
.github/workflows/main_poweron-nyla.yml
vendored
|
|
@ -20,24 +20,19 @@ jobs:
|
|||
node-version: '18'
|
||||
cache: 'npm' # Aktiviert Caching für schnellere Builds
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm install
|
||||
|
||||
- name: Build React app
|
||||
run: npm run build
|
||||
env:
|
||||
CI: false # Verhindert, dass Warnungen den Build stoppen
|
||||
|
||||
- name: Prepare deployment package
|
||||
run: |
|
||||
cp package.json build/
|
||||
cp staticwebapp.config.json build/
|
||||
cd build
|
||||
npm install --production
|
||||
# Create deployment package with source files
|
||||
mkdir deploy
|
||||
cp -r src deploy/
|
||||
cp -r public deploy/
|
||||
cp package.json deploy/
|
||||
cp package-lock.json deploy/
|
||||
cp staticwebapp.config.json deploy/
|
||||
|
||||
- name: 'Deploy to Azure Web App'
|
||||
uses: azure/webapps-deploy@v3
|
||||
with:
|
||||
app-name: 'poweron-nyla'
|
||||
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D6C9359A57C5448A8C0BFA2D4C4B2068 }}
|
||||
package: ./build # Spezifiziert den Build-Ordner der React-App
|
||||
package: ./deploy
|
||||
|
|
|
|||
Loading…
Reference in a new issue