Skip to content

Commit

Permalink
action for azure
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Reynolds committed Apr 28, 2024
1 parent da4d047 commit 1aa0134
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
51 changes: 51 additions & 0 deletions .github/workflows/cloudapp-azure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: CloudApp Azure Deploy

on:
workflow_dispatch:
push:
branches:
- 'dev'
- 'main'
paths:
- cloudapp/azure/**
- cloudapp/app.py
- cloudapp/templates/**
tags:
- 'v*'
pull_request:
branches:
- 'dev'
paths:
- cloudapp/azure/**
- cloudapp/app.py
- cloudapp/templates/**

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Login to Azure
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}

- name: Deploy to Azure Functions
uses: azure/functions-action@v1
with:
app-name: YourFunctionAppName
package: ./cloudapp
publish-profile: ${{ secrets.AZURE_PUBLISH_PROFILE }}

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: lab-build
name: LabApp Build

on:
workflow_dispatch:
Expand Down

0 comments on commit 1aa0134

Please sign in to comment.