Skip to content
Merged
Changes from all commits
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
testing deployment
  • Loading branch information
enriquezrene committed Nov 25, 2020
commit e8dd5715e433efa3b4ce0ee6f69a9fef7ea00bd0
34 changes: 9 additions & 25 deletions .github/workflows/CD-azure-functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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 }}