-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 1.11 KB
/
workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Python Function App to Linux on Azure
# Build a Python function app and deploy it to Azure as a Linux function app.
# Add steps that analyze code, save build artifacts, deploy, and more:
on:
push:
branches:
- master
name: Build and deploy Python Function app
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# checkout the repo
- uses: actions/checkout@master
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: 3.6
- uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS_d76de152-4369-42 }}
- name: 'Run pip'
shell: bash
working-directory: .
run: |
python -m pip install --upgrade pip
python -m venv --copies worker_venv
source worker_venv/bin/activate
pip install -r requirements.txt
# deploy web app using publish profile credentials
- name: 'Run Azure Functions Action'
uses: Azure/functions-action@v1
with:
app-name: hiyadalinuxfunctionapp
package: .
# Azure logout
- name: logout
run: |
az logout