Compare commits
No commits in common. "main" and "v1.1.0" have entirely different histories.
49
.github/workflows/ci.yml
vendored
Normal file
49
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
dotnet-version: [ "6.0", "7.0" ]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup .NET ${{ matrix.dotnet-version }}.x
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: ${{ matrix.dotnet-version }}.x
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore src/BitBadger.AspNetCore.CanonicalDomains/BitBadger.AspNetCore.CanonicalDomains.csproj
|
||||||
|
- name: Build
|
||||||
|
run: dotnet build src/BitBadger.AspNetCore.CanonicalDomains/BitBadger.AspNetCore.CanonicalDomains.csproj --no-restore
|
||||||
|
# TODO: set up tests
|
||||||
|
# - name: Test (.NET ${{ matrix.dotnet-version }})
|
||||||
|
# run: dotnet run --project path/to/project -f net${{ matrix.dotnet-version }}
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build-and-test
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: "7.0"
|
||||||
|
- name: Package library
|
||||||
|
run: dotnet pack src/BitBadger.AspNetCore.CanonicalDomains/BitBadger.AspNetCore.CanonicalDomains.csproj -c Release
|
||||||
|
- name: Move package
|
||||||
|
run: cp src/BitBadger.AspNetCore.CanonicalDomains/bin/Release/BitBadger.AspNetCore.CanonicalDomains.*.nupkg .
|
||||||
|
- name: Save Packages
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: packages
|
||||||
|
path: |
|
||||||
|
*.nupkg
|
@ -1,5 +1,7 @@
|
|||||||
# BitBadger.AspNetCore.CanonicalDomains
|
# BitBadger.AspNetCore.CanonicalDomains
|
||||||
|
|
||||||
|
[![CI](https://github.com/bit-badger/BitBadger.AspNetCore.CanonicalDomains/actions/workflows/ci.yml/badge.svg)](https://github.com/bit-badger/BitBadger.AspNetCore.CanonicalDomains/actions/workflows/ci.yml)
|
||||||
|
|
||||||
ASP.NET Core middleware to enforce canonical domains
|
ASP.NET Core middleware to enforce canonical domains
|
||||||
|
|
||||||
See the [package README](./src/BitBadger.AspNetCore.CanonicalDomains/README.md) for more details
|
See the [package README](./src/BitBadger.AspNetCore.CanonicalDomains/README.md) for more details
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
<PackageReadmeFile>README.md</PackageReadmeFile>
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
<PackageProjectUrl>https://bitbadger.solutions/open-source/canonical-domain-middleware/</PackageProjectUrl>
|
<PackageProjectUrl>https://bitbadger.solutions/open-source/canonical-domain-middleware/</PackageProjectUrl>
|
||||||
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
|
||||||
<RepositoryUrl>https://git.bitbadger.solutions/bit-badger/BitBadger.AspNetCore.CanonicalDomains</RepositoryUrl>
|
<RepositoryUrl>https://github.com/bit-badger/BitBadger.AspNetCore.CanonicalDomains</RepositoryUrl>
|
||||||
<RepositoryType>Git</RepositoryType>
|
<RepositoryType>Git</RepositoryType>
|
||||||
<Copyright>MIT License</Copyright>
|
<Copyright>MIT License</Copyright>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
Loading…
Reference in New Issue
Block a user