File tree Expand file tree Collapse file tree 1 file changed +14
-17
lines changed
Expand file tree Collapse file tree 1 file changed +14
-17
lines changed Original file line number Diff line number Diff line change 11name : CD process to deploy to AzureFuncions
22
33on :
4- # Trigger the workflow on pull request but only for the master branch
5- pull_request :
6- types : [closed]
4+ # Trigger the workflow on push or pull request,
5+ # but only for the main branch
6+ push :
77 branches :
8- - master
8+ - pipe
99
1010env :
11- AZURE_FUNCTIONAPP_NAME : AutomaticClockOuts # set this to your application's name
12- AZURE_FUNCTIONAPP_PACKAGE_PATH : ' ./ AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root
11+ AZURE_FUNCTIONAPP_NAME : ' time-tracker-azure-functions '
12+ AZURE_FUNCTIONAPP_PACKAGE_PATH : ' AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root
1313
1414jobs :
1515 build-and-deploy :
@@ -21,14 +21,11 @@ jobs:
2121 node-version : ' 10.x'
2222 - name : ' run npm'
2323 run : |
24- pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
25- npm install
26- npm run build --if-present
27- popd
28- - name : ' Run Azure Functions Action'
29- uses : Azure/functions-action@v1
30- id : fa
31- with :
32- app-name : ${{ env.AZURE_FUNCTIONAPP_NAME }}
33- package : ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
34- publish-profile : ${{ secrets.SCM_CREDENTIALS }}
24+ ls
25+ # - name: 'Run Azure Functions Action'
26+ # uses: Azure/functions-action@v1
27+ # id: fa
28+ # with:
29+ # app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
30+ # package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
31+ # publish-profile: ${{ secrets.SCM_CREDENTIALS }}
You can’t perform that action at this time.
0 commit comments