-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
285 additions
and
1,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "01:00" | ||
open-pull-requests-limit: 10 | ||
|
||
- package-ecosystem: nuget | ||
directory: "/" | ||
schedule: | ||
interval: daily | ||
time: "11:00" | ||
time: "02:00" | ||
open-pull-requests-limit: 10 | ||
ignore: | ||
- dependency-name: Microsoft.NET.Test.Sdk | ||
versions: | ||
- 16.9.4 | ||
- dependency-name: DataGenerator | ||
versions: | ||
- 5.0.0.178 | ||
- dependency-name: Npgsql | ||
versions: | ||
- 5.0.3 | ||
- dependency-name: coverlet.msbuild | ||
versions: | ||
- 3.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,75 +1,115 @@ | ||
name: .NET Core | ||
name: Build | ||
|
||
on: [push, pull_request] | ||
env: | ||
DOTNET_NOLOGO: true | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | ||
DOTNET_ENVIRONMENT: github | ||
ASPNETCORE_ENVIRONMENT: github | ||
BUILD_PATH: "${{github.workspace}}/artifacts" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
tags: | ||
- "v*" | ||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup .NET 6.0 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: Install GitVersion | ||
run: dotnet tool install --global GitVersion.Tool | ||
|
||
- name: Determine Version | ||
run: dotnet gitversion /output buildserver /updateprojectfiles | ||
|
||
- name: Build Reason | ||
run: "echo ref: ${{github.ref}} event: ${{github.event_name}}" | ||
|
||
- name: Build Solution | ||
run: dotnet build --configuration Release | ||
|
||
- name: Package Nuget | ||
if: success() && github.event_name != 'pull_request' | ||
run: dotnet pack --configuration Release --include-symbols --include-source --no-restore | ||
|
||
- name: Publish Samples | ||
if: success() && github.event_name != 'pull_request' | ||
run: dotnet publish --configuration Release --output publish | ||
|
||
- name: Upload Artifacts | ||
if: success() && github.event_name != 'pull_request' | ||
uses: actions/upload-artifact@v1.0.0 | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
|
||
- name: Publish CI Packages | ||
if: success() && github.event_name != 'pull_request' | ||
run: | | ||
dotnet nuget add source --username pwelter34 --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/loresoft/index.json" | ||
for package in $(find -name "*.nupkg"); do | ||
echo "${0##*/}": Pushing $package... | ||
dotnet nuget push $package --source https://www.myget.org/F/loresoft/api/v3/index.json --api-key ${{ secrets.MYGET_KEY }} --skip-duplicate | ||
dotnet nuget push $package --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
done | ||
- name: Publish Release Packages | ||
if: success() && startsWith(github.ref, 'refs/tags/v') | ||
run: | | ||
for package in $(find -name "*.nupkg"); do | ||
echo "${0##*/}": Pushing $package... | ||
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate | ||
done | ||
- name: Deploy Sample Website | ||
if: success() && github.ref == 'refs/heads/master' | ||
uses: crazy-max/ghaction-github-pages@v2 | ||
with: | ||
target_branch: gh-pages | ||
build_dir: publish/wwwroot | ||
fqdn: blazor.loresoft.com | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_PAT: ${{ secrets.COMMITTOKEN }} | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install .NET | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Restore Dependencies | ||
run: dotnet restore | ||
|
||
- name: Build Solution | ||
run: dotnet build --no-restore --configuration Release | ||
|
||
- name: Create Packages | ||
if: success() && github.event_name != 'pull_request' | ||
run: dotnet pack --configuration Release --include-symbols --include-source --no-build --output "${{env.BUILD_PATH}}/packages" | ||
|
||
- name: Publish Samples | ||
if: success() && github.event_name != 'pull_request' | ||
run: dotnet publish --configuration Release --output "${{env.BUILD_PATH}}/sample" | ||
|
||
- name: Upload Packages | ||
if: success() && github.event_name != 'pull_request' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: packages | ||
path: "${{env.BUILD_PATH}}/packages" | ||
|
||
- name: Upload Sample Web Site | ||
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
name: github-pages | ||
path: "${{env.BUILD_PATH}}/sample" | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) | ||
|
||
steps: | ||
- name: Download Artifact | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: packages | ||
|
||
- name: Publish Packages GitHub | ||
run: | | ||
for package in $(find -name "*.nupkg"); do | ||
echo "${0##*/}": Pushing $package... | ||
dotnet nuget push $package --source https://nuget.pkg.github.com/loresoft/index.json --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate | ||
done | ||
- name: Publish Packages feedz | ||
run: | | ||
for package in $(find -name "*.nupkg"); do | ||
echo "${0##*/}": Pushing $package... | ||
dotnet nuget push $package --source https://f.feedz.io/loresoft/open/nuget/index.json --api-key ${{ secrets.FEEDDZ_KEY }} --skip-duplicate | ||
done | ||
- name: Publish Packages Nuget | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
run: | | ||
for package in $(find -name "*.nupkg"); do | ||
echo "${0##*/}": Pushing $package... | ||
dotnet nuget push $package --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_KEY }} --skip-duplicate | ||
done | ||
pages: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: success() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v')) | ||
|
||
permissions: | ||
pages: write | ||
id-token: write | ||
|
||
steps: | ||
- name: Deploy Sample | ||
id: deployment | ||
uses: actions/deploy-pages@v2 | ||
|
||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<Project> | ||
|
||
<PropertyGroup Label="Package"> | ||
<Description>Blazor Controls Library</Description> | ||
<Copyright>Copyright © $([System.DateTime]::Now.ToString(yyyy)) LoreSoft</Copyright> | ||
<Authors>LoreSoft</Authors> | ||
<NeutralLanguage>en-US</NeutralLanguage> | ||
<GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
<PackageTags>Blazor;Typeahead;AutoComplete;Razor Components;Controls;Multiselect;DatePicker</PackageTags> | ||
<PackageProjectUrl>https://github.com/loresoft/LoreSoft.Blazor.Controls</PackageProjectUrl> | ||
<PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
<PackageIcon>logo.png</PackageIcon> | ||
<PackageReadmeFile>README.md</PackageReadmeFile> | ||
<RepositoryType>git</RepositoryType> | ||
<RepositoryUrl>https://github.com/loresoft/LoreSoft.Blazor.Controls</RepositoryUrl> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<DebugType>portable</DebugType> | ||
<PublishRepositoryUrl>true</PublishRepositoryUrl> | ||
<IncludeSymbols>true</IncludeSymbols> | ||
<SymbolPackageFormat>snupkg</SymbolPackageFormat> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<LangVersion>latest</LangVersion> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<NoWarn>1591</NoWarn> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<MinVerTagPrefix>v</MinVerTagPrefix> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="AssemblyMetadata.Generators" Version="1.1.0" PrivateAssets="All" /> | ||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" /> | ||
<PackageReference Include="MinVer" Version="4.3.0" PrivateAssets="All" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include=".\..\..\logo.png"> | ||
<Pack>true</Pack> | ||
<PackagePath>\</PackagePath> | ||
<Visible>false</Visible> | ||
</None> | ||
<None Include=".\..\..\README.md"> | ||
<Pack>true</Pack> | ||
<PackagePath>\</PackagePath> | ||
<Visible>false</Visible> | ||
</None> | ||
</ItemGroup> | ||
|
||
</Project> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.