From e8dd5715e433efa3b4ce0ee6f69a9fef7ea00bd0 Mon Sep 17 00:00:00 2001 From: Rene Enriquez Date: Tue, 24 Nov 2020 21:22:22 -0500 Subject: [PATCH] testing deployment --- .github/workflows/CD-azure-functions.yml | 34 +++++++----------------- 1 file changed, 9 insertions(+), 25 deletions(-) diff --git a/.github/workflows/CD-azure-functions.yml b/.github/workflows/CD-azure-functions.yml index b2688b8..ffb902d 100644 --- a/.github/workflows/CD-azure-functions.yml +++ b/.github/workflows/CD-azure-functions.yml @@ -9,34 +9,18 @@ on: jobs: build-and-deploy: - name: Deploy to Azure runs-on: ubuntu-latest - timeout-minutes: 60 -# env: -# BUILD_PATH: './AutomaticClockOuts' - steps: - - name: Checkout of master - uses: actions/checkout@master - - - name: Set up Node.js version - uses: actions/setup-node@v1 + - uses: actions/checkout@master + - uses: actions/setup-node@v1 with: node-version: '10.x' - - - name: 'run: npm install and build' - working-directory: ./AutomaticClockOuts + - name: 'run npm' run: | - npm i -g nvm - nvm install 10.16.3 - npm i -g azure-functions-core-tools@core --unsafe-perm true npm install - func azure functionapp publish time-tracker-azure-functions - -# - uses: actions/checkout@v2 -# - name: Slack Notification -# uses: rtCamp/action-slack-notify@v2.0.0 -# env: -# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} -# SLACK_ICON: https://avatars.slack-edge.com/2020-04-14/1055222096486_7b0bf047c32f9f666b69_48.jpg -# SLACK_USERNAME: 'heisenberg-deploy-azure-functions:' + npm run build --if-present + - uses: Azure/functions-action@v1 + id: AutomaticClockOuts + with: + app-name: time-tracker-azure-functions + publish-profile: ${{ secrets.SCM_CREDENTIALS }}