diff --git a/.github/workflows/OrcaHello.Web.Api.yaml b/.github/workflows/OrcaHello.Web.Api.yaml
new file mode 100644
index 00000000..24ab2714
--- /dev/null
+++ b/.github/workflows/OrcaHello.Web.Api.yaml
@@ -0,0 +1,78 @@
+name: OrcaHello.Web.Api
+
+on:
+ pull_request:
+ branches:
+ - main
+ paths:
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api/**
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Shared/**
+ push:
+ branches:
+ - main
+ paths:
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api/**
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Shared/**
+ workflow_dispatch: # Allow manual workflow invocation from the Github Actions UI
+
+env:
+ DOTNET_VERSION: 6.0.x
+ DOTNET_RUNTIME: win-x86
+ WORKING_DIR: ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api
+ PUBLISH_DIR: output
+ AZURE_APP_NAME: AIForOrcasDetections2
+
+defaults:
+ run:
+ working-directory: ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
+ with:
+ egress-policy: audit
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Setup .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+ - name: Dependencies
+ run: dotnet restore -r ${{ env.DOTNET_RUNTIME }}
+ - name: Build
+ run: dotnet build --no-restore -c Release -r ${{ env.DOTNET_RUNTIME }}
+ - name: Test
+ run: dotnet test --no-restore -r ${{ env.DOTNET_RUNTIME }}
+ - name: Publish
+ run: dotnet publish --no-restore -c Release -o './${{ env.PUBLISH_DIR }}'
+ - name: Artifacts cache
+ uses: actions/cache@v2
+ with:
+ path: ./${{ env.WORKING_DIR }}/${{ env.PUBLISH_DIR }}
+ key: ${{ github.sha }}-${{ env.AZURE_APP_NAME }}-${{ env.DOTNET_RUNTIME }}-artifacts
+ deploy:
+ if: github.ref == 'refs/heads/main'
+ runs-on: ubuntu-latest
+ needs:
+ - build
+ permissions:
+ contents: read
+ steps:
+ - uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
+ with:
+ egress-policy: audit
+ - name: Artifacts cache
+ uses: actions/cache@v2
+ with:
+ path: ./${{ env.WORKING_DIR}}/${{ env.PUBLISH_DIR }}
+ key: ${{ github.sha }}-${{ env.AZURE_APP_NAME }}-${{ env.DOTNET_RUNTIME }}-artifacts
+ - name: Deploy to azure
+ uses: azure/webapps-deploy@v2
+ with:
+ app-name: ${{ env.AZURE_APP_NAME }}
+ publish-profile: ${{ secrets.AZURE_ORCAHELLODETECTIONS_PUBLISH_PROFILE }}
+ package: ./${{ env.WORKING_DIR }}/${{ env.PUBLISH_DIR }}
diff --git a/.github/workflows/OrcaHello.Web.UI.yaml b/.github/workflows/OrcaHello.Web.UI.yaml
new file mode 100644
index 00000000..e89254ff
--- /dev/null
+++ b/.github/workflows/OrcaHello.Web.UI.yaml
@@ -0,0 +1,78 @@
+name: OrcaHello.Web.UI
+
+on:
+ pull_request:
+ branches:
+ - main
+ paths:
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI/**
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Shared/**
+ push:
+ branches:
+ - main
+ paths:
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI/**
+ - ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Shared/**
+ workflow_dispatch: # Allow manual workflow invocation from the Github Actions UI
+
+env:
+ DOTNET_VERSION: 6.0.x
+ DOTNET_RUNTIME: win-x86
+ WORKING_DIR: ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI
+ PUBLISH_DIR: output
+ AZURE_APP_NAME: AIForOrcas2
+
+defaults:
+ run:
+ working-directory: ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ steps:
+ - uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
+ with:
+ egress-policy: audit
+ - name: Checkout
+ uses: actions/checkout@v2
+ - name: Setup .NET Core
+ uses: actions/setup-dotnet@v1
+ with:
+ dotnet-version: ${{ env.DOTNET_VERSION }}
+ - name: Dependencies
+ run: dotnet restore -r ${{ env.DOTNET_RUNTIME }}
+ - name: Build
+ run: dotnet build --no-restore -c Release -r ${{ env.DOTNET_RUNTIME }}
+ - name: Test
+ run: dotnet test --no-restore -r ${{ env.DOTNET_RUNTIME }}
+ - name: Publish
+ run: dotnet publish --no-restore -c Release -o './${{ env.PUBLISH_DIR }}'
+ - name: Artifacts cache
+ uses: actions/cache@v2
+ with:
+ path: ./${{ env.WORKING_DIR }}/${{ env.PUBLISH_DIR }}
+ key: ${{ github.sha }}-${{ env.AZURE_APP_NAME }}-${{ env.DOTNET_RUNTIME }}-artifacts
+ deploy:
+ if: github.ref == 'refs/heads/main'
+ runs-on: ubuntu-latest
+ needs:
+ - build
+ permissions:
+ contents: read
+ steps:
+ - uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
+ with:
+ egress-policy: audit
+ - name: Artifacts cache
+ uses: actions/cache@v2
+ with:
+ path: ./${{ env.WORKING_DIR}}/${{ env.PUBLISH_DIR }}
+ key: ${{ github.sha }}-${{ env.AZURE_APP_NAME }}-${{ env.DOTNET_RUNTIME }}-artifacts
+ - name: Deploy to azure
+ uses: azure/webapps-deploy@v2
+ with:
+ app-name: ${{ env.AZURE_APP_NAME }}
+ publish-profile: ${{ secrets.AZURE_ORCAHELLO_PUBLISH_PROFILE }}
+ package: ./${{ env.WORKING_DIR }}/${{ env.PUBLISH_DIR }}
diff --git a/ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api/Properties/PublishProfiles/AIForOrcasDetections2 - Web Deploy.pubxml b/ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api/Properties/PublishProfiles/AIForOrcasDetections2 - Web Deploy.pubxml
new file mode 100644
index 00000000..6ab7b753
--- /dev/null
+++ b/ModeratorFrontEnd/OrcaHello/OrcaHello.Web.Api/Properties/PublishProfiles/AIForOrcasDetections2 - Web Deploy.pubxml
@@ -0,0 +1,27 @@
+
+
+
+
+ MSDeploy
+ AzureWebSite
+ Release
+ Any CPU
+ https://aifororcasdetections2.azurewebsites.net
+ true
+ false
+ 7aa0448f-f0e4-43c8-a833-5038e38aac22
+ aifororcasdetections2.scm.azurewebsites.net:443
+ AIForOrcasDetections2
+
+ true
+ WMSVC
+ true
+ true
+ $AIForOrcasDetections2
+ <_SavePWD>true
+ <_DestinationType>AzureWebSite
+
+
\ No newline at end of file
diff --git a/ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI/Properties/PublishProfiles/AIForOrcas2 - Web Deploy.pubxml b/ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI/Properties/PublishProfiles/AIForOrcas2 - Web Deploy.pubxml
new file mode 100644
index 00000000..a1b38397
--- /dev/null
+++ b/ModeratorFrontEnd/OrcaHello/OrcaHello.Web.UI/Properties/PublishProfiles/AIForOrcas2 - Web Deploy.pubxml
@@ -0,0 +1,28 @@
+
+
+
+
+ MSDeploy
+ AzureWebSite
+ Release
+ Any CPU
+ https://aifororcas2.azurewebsites.net
+ true
+ false
+ 77ab2826-1cf2-45dc-8322-10c94b982e2b
+ aifororcas2.scm.azurewebsites.net:443
+ AIForOrcas2
+
+ true
+ WMSVC
+ true
+ true
+ $AIForOrcas2
+ <_SavePWD>true
+ <_DestinationType>AzureWebSite
+ false
+
+
\ No newline at end of file