From 432dfd3f9c03ad0e0d9cddc73696143c87bafc26 Mon Sep 17 00:00:00 2001
From: Elleain <64912415+Elleain@users.noreply.github.com>
Date: Tue, 14 May 2024 13:02:40 +0000
Subject: [PATCH 1/3] Update title and color
---
frontend/src/views/Home.vue | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue
index 16cd3818..02ab5c06 100644
--- a/frontend/src/views/Home.vue
+++ b/frontend/src/views/Home.vue
@@ -6,8 +6,8 @@
-
- Milligram
+
+ Elleaingram
From b272775ad4af98568293297421f15bd04c089e52 Mon Sep 17 00:00:00 2001
From: Elleain <64912415+Elleain@users.noreply.github.com>
Date: Tue, 14 May 2024 14:43:55 +0000
Subject: [PATCH 2/3] Add or update the Azure App Service build and deployment
workflow config
---
.github/workflows/main_ellia.yml | 69 ++++++++++++++++++++++++++++++++
1 file changed, 69 insertions(+)
create mode 100644 .github/workflows/main_ellia.yml
diff --git a/.github/workflows/main_ellia.yml b/.github/workflows/main_ellia.yml
new file mode 100644
index 00000000..556e8b10
--- /dev/null
+++ b/.github/workflows/main_ellia.yml
@@ -0,0 +1,69 @@
+# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
+# More GitHub Actions for Azure: https://github.com/Azure/actions
+# More info on Python, GitHub Actions, and Azure App Service: https://aka.ms/python-webapps-actions
+
+name: Build and deploy Python app to Azure Web App - ellia
+
+on:
+ push:
+ branches:
+ - main
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Python version
+ uses: actions/setup-python@v1
+ with:
+ python-version: '3.12'
+
+ - name: Create and start virtual environment
+ run: |
+ python -m venv venv
+ source venv/bin/activate
+
+ - name: Install dependencies
+ run: pip install -r requirements.txt
+
+ # Optional: Add step to run tests here (PyTest, Django test suites, etc.)
+
+ - name: Zip artifact for deployment
+ run: zip release.zip ./* -r
+
+ - name: Upload artifact for deployment jobs
+ uses: actions/upload-artifact@v3
+ with:
+ name: python-app
+ path: |
+ release.zip
+ !venv/
+
+ deploy:
+ runs-on: ubuntu-latest
+ needs: build
+ environment:
+ name: 'Production'
+ url: ${{ steps.deploy-to-webapp.outputs.webapp-url }}
+
+ steps:
+ - name: Download artifact from build job
+ uses: actions/download-artifact@v3
+ with:
+ name: python-app
+
+ - name: Unzip artifact for deployment
+ run: unzip release.zip
+
+
+ - name: 'Deploy to Azure Web App'
+ uses: azure/webapps-deploy@v2
+ id: deploy-to-webapp
+ with:
+ app-name: 'ellia'
+ slot-name: 'Production'
+ publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_9D602BC366554F338F7AE84B04484DD9 }}
\ No newline at end of file
From dfb276c4774d3ee434778b22794b904f1b1a3625 Mon Sep 17 00:00:00 2001
From: Elleain <64912415+Elleain@users.noreply.github.com>
Date: Wed, 15 May 2024 12:51:32 +0000
Subject: [PATCH 3/3] changes to be committed
---
.github/workflows/main_ellia.yml | 9 ++++++++-
frontend/src/App.vue | 7 +++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/main_ellia.yml b/.github/workflows/main_ellia.yml
index 556e8b10..8b19542b 100644
--- a/.github/workflows/main_ellia.yml
+++ b/.github/workflows/main_ellia.yml
@@ -66,4 +66,11 @@ jobs:
with:
app-name: 'ellia'
slot-name: 'Production'
- publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_9D602BC366554F338F7AE84B04484DD9 }}
\ No newline at end of file
+ publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_9D602BC366554F338F7AE84B04484DD9 }}
+ - name: 'deploy chatbox'
+ uses: azure/appservice-settings@v1
+ with:
+ app-name: 'milligram'
+ slot-name: 'Production' # Optional and needed only if the settings have to be configured on the specific deployment slot
+ app-settings-json: '[{ "name": "CHAT_API_KEY", "value": "${{ secrets.CHAT_API_KEY }}", "slotSetting": false }, { "name": "CHAT_API_ENDPOINT", "value": "${{ secrets.CHAT_API_ENDPOINT }}", "slotSetting": false }, { "name": "AZURE_OPENAI_MODEL_NAME", "value": "${{ secrets.AZURE_OPENAI_MODEL_NAME }}", "slotSetting": false }]'
+ id: settings
\ No newline at end of file
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index e23f5213..06ba56d6 100644
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -8,7 +8,10 @@
-
+
+
@@ -135,4 +138,4 @@ export default class App extends Vue {
#bottom {
bottom: 0;
}
-
+
\ No newline at end of file