Merge branch 'main' of https://github.com/valueonag/frontend_nyla
This commit is contained in:
commit
bb31f9820a
2 changed files with 35 additions and 0 deletions
34
.github/workflows/main_poweron-nyla.yml
vendored
Normal file
34
.github/workflows/main_poweron-nyla.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Deploy React App to Azure Web App
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main # oder dein Branch
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node.js
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '18' # passend zu deiner Node-Version
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: npm ci # oder npm install, wenn du kein package-lock.json hast
|
||||||
|
|
||||||
|
- name: Build React app
|
||||||
|
run: npm run build
|
||||||
|
|
||||||
|
|
||||||
|
- name: 'Deploy to Azure Web App'
|
||||||
|
uses: azure/webapps-deploy@v3
|
||||||
|
id: deploy-to-webapp
|
||||||
|
with:
|
||||||
|
app-name: 'poweron-nyla'
|
||||||
|
slot-name: 'Production'
|
||||||
|
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_D6C9359A57C5448A8C0BFA2D4C4B2068 }}
|
||||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
|
||||||
Loading…
Reference in a new issue