-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (28 loc) · 961 Bytes
/
Copy pathDeployDataTransfer.yml
File metadata and controls
34 lines (28 loc) · 961 Bytes
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
name: DeployDataTransfer
on:
workflow_dispatch:
env:
AZURE_FUNCTIONAPP_NAME: 'PetrodataOnlineDataTransfer'
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.'
jobs:
build:
name: Build release
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Build
shell: pwsh
run: |
pushd './${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}'
dotnet build DatabaseManager.Services.DataTransfer/DatabaseManager.Services.DataTransfer.csproj --configuration Release --output ./output
popd
- name: Deploy to Azure
uses: Azure/functions-action@v1
with:
app-name: ${{ env.AZURE_FUNCTIONAPP_NAME }}
package: '${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}/output'
publish-profile: ${{ secrets.DATATRANSFER_PROFILE }}