Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6ae7769
Set up PxWeb CI with Azure Pipelines
PerIngeVaaje Sep 22, 2021
f452a11
Update azure-pipelines.yml
PerIngeVaaje Sep 22, 2021
279c5b0
Update azure-pipelines.yml
PerIngeVaaje Sep 22, 2021
1fceb93
Update azure-pipelines.yml for Azure Pipelines
PerIngeVaaje Sep 23, 2021
8f5a34b
Update azure-pipelines.yml for Azure Pipelines
PerIngeVaaje Sep 23, 2021
21c0209
Add or update the Azure App Service build and deployment workflow config
PerIngeVaaje Sep 23, 2021
4c1c917
Add or update the Azure App Service build and deployment workflow config
PerIngeVaaje Sep 24, 2021
8f594b0
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 24, 2021
187ae62
Add or update the Azure App Service build and deployment workflow config
PerIngeVaaje Sep 27, 2021
41f4cd5
update target dir
PerIngeVaaje Sep 28, 2021
67c5320
Update azure-pipelines_pxinthesky.yml
PerIngeVaaje Sep 28, 2021
7dd82cf
Update azure-pipelines_pxinthesky.yml
PerIngeVaaje Sep 28, 2021
f50ebab
Update azure-pipelines_pxinthesky.yml
PerIngeVaaje Sep 28, 2021
4261322
Update azure-pipelines_pxinthesky.yml
PerIngeVaaje Sep 28, 2021
c42e7d6
Update azure-pipelines_pxinthesky.yml
PerIngeVaaje Sep 28, 2021
6c32956
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
dc93338
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
3c93fb2
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
dae1bc9
Delete msbuild.yml
PerIngeVaaje Sep 28, 2021
d2b027b
Delete buildOnPullRequest.yml
PerIngeVaaje Sep 28, 2021
aab63a7
Delete azure-pipelines_pxcloud.yml
PerIngeVaaje Sep 28, 2021
c5cd946
Delete azure-pipelines_pxinthesky.yml
PerIngeVaaje Sep 28, 2021
3491a6e
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
ba6d32a
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
fdbd970
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
763922f
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
b5e1bd5
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
ed8860f
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 28, 2021
4632e5c
Update azure-pipelines_pxcloud2.yml
PerIngeVaaje Sep 29, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/azure-pipelines_pxcloud2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy to PXCloud2

on:
push:
branches:
- azure-pipelines
workflow_dispatch:

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2

- name: Setup MSBuild path
uses: microsoft/setup-msbuild@v1.0.2

- name: Setup NuGet
uses: NuGet/setup-nuget@v1.0.5

- name: Restore NuGet packages
run: nuget restore PCAxis.PX-Web.sln

- name: Publish to folder
run: msbuild PCAxis.PX-Web.sln /nologo /verbosity:m /p:DeployOnBuild=TRUE /p:_PackageTempDir="\published\"

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v2
with:
name: ASP-app
path: '/published/**'

deploy:
runs-on: windows-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@v2
with:
name: ASP-app

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v2
with:
app-name: 'PXCloud2'
slot-name: 'Production'
publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_0C291CE2EEA14BC2BB5F6A6972930634 }}
package: .
26 changes: 0 additions & 26 deletions .github/workflows/buildOnPullRequest.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/msbuild.yml

This file was deleted.

34 changes: 34 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4

trigger:
- azure-pipelines

pool:
vmImage: 'windows-latest'

variables:
solution: 'PCAxis.PX-Web.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'