forked from oqtane/oqtane.framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
60 lines (50 loc) · 1.71 KB
/
azure-pipelines.yml
File metadata and controls
60 lines (50 loc) · 1.71 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
trigger:
branches:
include:
- master
pool:
vmImage: 'windows-latest'
steps:
- checkout: self
clean: true
- script: |
echo "Creating Oqtane.Framework directory..."
mkdir oqtane.framework
displayName: 'Create Oqtane.Framework Directory'
- script: |
echo "Cloning Oqtane Framework (master branch)..."
git clone --depth 1 --branch master https://github.com/kioskFast/oqtane.framework.git oqtane.framework
displayName: 'Clone Oqtane Framework (master branch)'
# Remove this delete if running a new setup for the first time
# Uncomment when doing an update to an existing install so it doesn't overwrite
- script: |
echo "Deleting appsettings.json and appsettings.release.json..."
rm -f oqtane.framework/Oqtane.Server/appsettings.json
rm -f oqtane.framework/Oqtane.Server/appsettings.release.json
displayName: 'Delete AppSettings Files'
- task: UseDotNet@2
inputs:
packageType: 'sdk'
version: '9.x'
displayName: 'Install .NET SDK'
- script: |
echo "Restoring dependencies for Oqtane..."
cd oqtane.framework
dotnet restore Oqtane.sln
displayName: 'Restore Dependencies'
- script: |
echo "Building Oqtane Server..."
cd oqtane.framework
dotnet build Oqtane.sln -c Release
displayName: 'Build Oqtane (Release)'
- script: |
echo "Publishing Oqtane Server..."
cd oqtane.framework
dotnet publish Oqtane.Server/Oqtane.Server.csproj -c Release -o $(Build.ArtifactStagingDirectory)/oqtane
displayName: 'Publish Oqtane (Release)'
- task: AzureWebApp@1
inputs:
azureSubscription: '33ccb08b-86ec-4841-9327-6f308fb703d4'
appName: 'RubbishFast'
package: '$(Build.ArtifactStagingDirectory)/oqtane'
displayName: 'Deploy Oqtane to Azure Web App'