diff --git a/.github/workflows/NewActionWorkflow.yml b/.github/workflows/NewActionWorkflow.yml deleted file mode 100644 index b46bd47..0000000 --- a/.github/workflows/NewActionWorkflow.yml +++ /dev/null @@ -1,82 +0,0 @@ -on: - push: - branches: - - feature - pull_request: - branches: - - main - - develop - -env: - NODE_VERSION: '16.x' - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: ${{ env.NODE_VERSION }} - - - name: Install dependencies - run: npm ci - - - name: Build - run: npm run build - - - name: Run Tests - run: npm test - - - name: Upload artifact for deployment - uses: actions/upload-artifact@v2 - with: - name: node-app - path: . - - deploy-to-test: - runs-on: ubuntu-latest - needs: build - if: github.event_name == 'pull_request' && github.base_ref == 'refs/heads/develop' - environment: - name: 'test' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v2 - with: - name: node-app - - - name: 'Deploy to Azure Web App Test (L5-M3-Test)' - id: deploy-to-webapp-test - uses: azure/webapps-deploy@v2 - with: - app-name: 'L5-M3-Test' - slot-name: 'Test' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_8E171E9ED47D41E49585227E738F3014 }} - package: ./dist - - deploy-to-production: - runs-on: ubuntu-latest - needs: build - if: github.event_name == 'pull_request' && github.base_ref == 'refs/heads/main' - environment: - name: 'production' - url: ${{ steps.deploy-to-webapp.outputs.webapp-url }} - steps: - - name: Download artifact from build job - uses: actions/download-artifact@v2 - with: - name: node-app - - - name: 'Deploy to Azure Web App Production (L5-M3-2)' - id: deploy-to-webapp-production - uses: azure/webapps-deploy@v2 - with: - app-name: 'L5-M3-2' - slot-name: 'Production' - publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0694010A467345BC83A7673AB4B541DA }} - package: ./dist