diff --git a/.github/workflows/main_poweron-nyla.yml b/.github/workflows/main_poweron-nyla.yml new file mode 100644 index 0000000..2f7895b --- /dev/null +++ b/.github/workflows/main_poweron-nyla.yml @@ -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 }} diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +