-
Notifications
You must be signed in to change notification settings - Fork 14
Adding configuration for static content's location customization #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| name: Darnton.Blazor.DeviceInterop | ||
|
|
||
| env: | ||
| SUBFOLDER: './Darnton.Blazor.DeviceInterop' | ||
| PROJECT: 'Darnton.Blazor.DeviceInterop.csproj' | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| paths: | ||
| - 'Darnton.Blazor.DeviceInterop/**' | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: [self-hosted, webpx, build] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup .NET | ||
| uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '9.0.x' | ||
|
|
||
| - name: Restore dependencies | ||
| run: dotnet restore ${{ env.SUBFOLDER }}/${{ env.PROJECT }} | ||
|
|
||
| - name: Build (Release) | ||
| run: dotnet build ${{ env.SUBFOLDER }}/${{ env.PROJECT }} --configuration Release --no-restore | ||
|
|
||
| - name: Pack NuGet package | ||
| run: dotnet pack ${{ env.SUBFOLDER }}/${{ env.PROJECT }} --configuration Release --no-build --output ${{ github.workspace }}\nupkgs | ||
|
|
||
| - name: Publish to GitHub Packages | ||
| run: dotnet nuget push ${{ github.workspace }}\nupkgs\*.nupkg --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
| env: | ||
| NUGET_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Upload package as workflow artifact (optional) | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Absractions | ||
| path: ./nupkgs/*.nupkg | ||
|
|
||
| - name: Clean up (optional) | ||
| run: rm -Force -Recurse ./nupkgs | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "App": { | ||
| "BasePath": "./" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -4,25 +4,31 @@ | |||
| <TargetFramework>net5.0</TargetFramework> | ||||
| <RootNamespace>Darnton.Blazor.DeviceInterop</RootNamespace> | ||||
| <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||||
| <Version>0.1.3</Version> | ||||
| <Version>0.1.4</Version> | ||||
| <Authors>Bernard Darnton</Authors> | ||||
| <Product>Blazor device interop library</Product> | ||||
| <Description>Blazor device interop library including wrappers for Geolocation API. Updated to .NET 5</Description> | ||||
| <Copyright>2020 Bernard Darnton</Copyright> | ||||
| <PackageLicenseExpression>MIT</PackageLicenseExpression> | ||||
| <RepositoryUrl>https://github.com/darnton/BlazorDeviceInterop</RepositoryUrl> | ||||
| <AssemblyVersion>0.0.1.3</AssemblyVersion> | ||||
| <FileVersion>0.0.1.3</FileVersion> | ||||
| <AssemblyVersion>0.0.1.4</AssemblyVersion> | ||||
| <FileVersion>0.0.1.4</FileVersion> | ||||
| </PropertyGroup> | ||||
|
|
||||
| <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'"> | ||||
| <DocumentationFile>C:\Users\user\source\repos\BlazorDeviceInterop\Darnton.Blazor.DeviceInterop\Darnton.Blazor.DeviceInterop.xml</DocumentationFile> | ||||
| <!--<DocumentationFile>C:\Users\user\source\repos\BlazorDeviceInterop\Darnton.Blazor.DeviceInterop\Darnton.Blazor.DeviceInterop.xml</DocumentationFile>--> | ||||
| </PropertyGroup> | ||||
|
|
||||
| <ItemGroup> | ||||
| <None Remove="Darnton.Blazor.DeviceInterop.xml" /> | ||||
| </ItemGroup> | ||||
|
|
||||
|
|
||||
| <ItemGroup> | ||||
| <PackageReference Include="Microsoft.AspNetCore.Components" Version="5.0.2" /> | ||||
| <PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="5.0.2" /> | ||||
| <PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="5.0.0" /> | ||||
| <PackageReference Include="System.Reactive" Version="6.0.2" /> | ||||
|
||||
| <PackageReference Include="System.Reactive" Version="6.0.2" /> |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -1,6 +1,7 @@ | ||||
| using Microsoft.JSInterop; | ||||
| using System; | ||||
| using System.Threading.Tasks; | ||||
| using Microsoft.Extensions.Configuration; | ||||
|
|
||||
| namespace Darnton.Blazor.DeviceInterop.Geolocation | ||||
| { | ||||
|
|
@@ -14,14 +15,16 @@ public class GeolocationService : IGeolocationService | |||
|
|
||||
| /// <inheritdoc/> | ||||
| public event EventHandler<GeolocationEventArgs> WatchPositionReceived; | ||||
| private readonly IConfiguration configuration; | ||||
|
|
||||
|
Comment on lines
+18
to
19
|
||||
| private readonly IConfiguration configuration; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The artifact name contains a typo. 'Absractions' should be 'Abstractions'.