Skip to content
Merged

Pipe #28

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
pipe 1
  • Loading branch information
enriquezrene committed Nov 25, 2020
commit bae3268bfc4cd0634df83bbd7cb8727d9d77d8bd
31 changes: 14 additions & 17 deletions .github/workflows/CD-azure-functions.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: CD process to deploy to AzureFuncions

on:
# Trigger the workflow on pull request but only for the master branch
pull_request:
types: [closed]
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- master
- pipe

env:
AZURE_FUNCTIONAPP_NAME: AutomaticClockOuts # set this to your application's name
AZURE_FUNCTIONAPP_PACKAGE_PATH: './AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root
AZURE_FUNCTIONAPP_NAME: 'time-tracker-azure-functions'
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'AutomaticClockOuts' # set this to the path to your web app project, defaults to the repository root

jobs:
build-and-deploy:
Expand All @@ -21,14 +21,11 @@ jobs:
node-version: '10.x'
- name: 'run npm'
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
npm install
npm run build --if-present
popd
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
id: fa
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
publish-profile: ${{ secrets.SCM_CREDENTIALS }}
ls
# - name: 'Run Azure Functions Action'
# uses: Azure/functions-action@v1
# id: fa
# with:
# app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
# package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
# publish-profile: ${{ secrets.SCM_CREDENTIALS }}