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'
|
node-version: '18'
|
||||||
cache: 'npm' # Aktiviert Caching für schnellere Builds
|
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
|
- name: Prepare deployment package
|
||||||
run: |
|
run: |
|
||||||
cp package.json build/
|
# Create deployment package with source files
|
||||||
cp staticwebapp.config.json build/
|
mkdir deploy
|
||||||
cd build
|
cp -r src deploy/
|
||||||
npm install --production
|
cp -r public deploy/
|
||||||
|
cp package.json deploy/
|
||||||
|
cp package-lock.json deploy/
|
||||||
|
cp staticwebapp.config.json deploy/
|
||||||
|
|
||||||
- name: 'Deploy to Azure Web App'
|
- name: 'Deploy to Azure Web App'
|
||||||
uses: azure/webapps-deploy@v3
|
uses: azure/webapps-deploy@v3
|
||||||
with:
|
with:
|
||||||
app-name: 'poweron-nyla'
|
app-name: 'poweron-nyla'
|
||||||
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D6C9359A57C5448A8C0BFA2D4C4B2068 }}
|
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D6C9359A57C5448A8C0BFA2D4C4B2068 }}
|
||||||
package: ./build # Spezifiziert den Build-Ordner der React-App
|
package: ./deploy
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue