Skip to content

Commit

Permalink
Merge pull request #6 from oliverheilig/master
Browse files Browse the repository at this point in the history
Update for Azure Web-App
  • Loading branch information
oliverheilig authored Apr 21, 2024
2 parents dee18e7 + 9484d8d commit 90b69c3
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 41 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/master_sharpmapwidgets.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]

- name: Setup NuGet
uses: NuGet/[email protected]

- 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: .
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
38 changes: 0 additions & 38 deletions SharpMap.Web/SharpMap.Web.csproj.user

This file was deleted.

4 changes: 2 additions & 2 deletions SharpMap.Web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
<meta http-equiv="X-UA-Compatible" content="IE=9; IE=8; IE=7; IE=EDGE" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<style>
body {
padding: 0;
Expand All @@ -25,7 +25,7 @@
<div id="map" />
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/jquery.min.js"></script>
<script src="https://unpkg.com/leaflet@1.4.0/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="https://unpkg.com/[email protected]/dist/NonTiledLayer.js"></script>
<script src="./VirtualLayer.js"></script>
<script src="./token.js"></script>
Expand Down

0 comments on commit 90b69c3

Please sign in to comment.