diff --git a/.github/workflows/master_sharpmapwidgets.yml b/.github/workflows/master_sharpmapwidgets.yml new file mode 100644 index 0000000..225ca67 --- /dev/null +++ b/.github/workflows/master_sharpmapwidgets.yml @@ -0,0 +1,58 @@ +# 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 ASP app to Azure Web App - sharpmapwidgets + +on: + push: + branches: + - master + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v4 + + - 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 + + - name: Publish to folder + run: msbuild SharpMap.Web\SharpMap.Web.csproj /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\" + #run: msbuild /nologo /verbosity:m /t:Build /t:pipelinePreDeployCopyAllFilesToOneFolder /p:_PackageTempDir="\published\" + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v3 + 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@v3 + with: + name: ASP-app + + - name: Deploy to Azure Web App + id: deploy-to-webapp + uses: azure/webapps-deploy@v2 + with: + app-name: 'sharpmapwidgets' + slot-name: 'Production' + publish-profile: ${{ secrets.AZUREAPPSERVICE_PUBLISHPROFILE_B58297B0BDCF4BB4A01AA2E577099432 }} + package: . diff --git a/README.md b/README.md index 9e7d1bf..fcf2435 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Build responsive map applications for web and desktop [SharpMap](https://github.com/SharpMap) is a powerful mapping library that supports a large variety of standards and formats. But the interactive Web- and Windows-Widgets of the SharpMap project are somehow neglected. On the other hand, "slippy map" Widgets like [Leaflet](http://leafletjs.com/) or [Ptv xServer.NET](https://github.com/ptv-logistics/xserver.net) cannot handle mass data very well. SharpMap.Widgets shows how to combine the SharpMap renderer with these widgets, so it combines the power of SharpMap with the Look&Feel of modern widgets. -[Web-Sample](http://176.95.37.29/SharpMap.Widgets/) +[Web-Sample](https://sharpmapwidgets.azurewebsites.net/) **Windows-Sample:** ![Windows-Sample](/Doc/SharpMap.Win.png) diff --git a/SharpMap.Web/SharpMap.Web.csproj.user b/SharpMap.Web/SharpMap.Web.csproj.user deleted file mode 100644 index 980bda8..0000000 --- a/SharpMap.Web/SharpMap.Web.csproj.user +++ /dev/null @@ -1,38 +0,0 @@ - - - - Debug|Any CPU - true - false - - - - - - - - - - - - - CurrentPage - True - False - False - False - - - - - - - - - True - True - - - - - \ No newline at end of file diff --git a/SharpMap.Web/index.html b/SharpMap.Web/index.html index cacf8f0..2321cd9 100644 --- a/SharpMap.Web/index.html +++ b/SharpMap.Web/index.html @@ -6,7 +6,7 @@ - +