Skip to content

Commit

Permalink
further clean up of workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Waterclone committed Aug 31, 2023
1 parent 27df10e commit a9cfa3b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pr-develop-to-webapp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy Node.js app to Azure Web App - L5-M3-Test
name: Merge to Main

on:
pull_request:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '18.x'
node-version: "18.x"

- name: npm install, build, and test
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
name: "Production"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
Expand All @@ -46,11 +46,11 @@ jobs:
with:
name: node-app

- name: 'Deploy to Azure Web App'
- name: "Deploy to Azure Web App"
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'L5-M3-Test'
slot-name: 'Production'
app-name: "L5-M3-Test"
slot-name: "Production"
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_8E171E9ED47D41E49585227E738F3014 }}
package: .
12 changes: 6 additions & 6 deletions .github/workflows/pr-main-to-webapp.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy to Azure Webapp - L5-M3-2
name: Merge to Develop

on:
pull_request:
Expand All @@ -19,7 +19,7 @@ jobs:
- name: Set up Node.js version
uses: actions/setup-node@v1
with:
node-version: '18.x'
node-version: "18.x"

- name: npm install, build, and test
run: |
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
environment:
name: 'Production'
name: "Production"
url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}

steps:
Expand All @@ -46,11 +46,11 @@ jobs:
with:
name: node-app

- name: 'Deploy to Azure Web App'
- name: "Deploy to Azure Web App"
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'L5-M3-2'
slot-name: 'Production'
app-name: "L5-M3-2"
slot-name: "Production"
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0694010A467345BC83A7673AB4B541DA }}
package: .
2 changes: 2 additions & 0 deletions .github/workflows/pu-feature.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Push to Feature

on:
push:
branches:
Expand Down

0 comments on commit a9cfa3b

Please sign in to comment.