diff --git a/.github/workflows/push_nuget.yml b/.github/workflows/push_nuget.yml new file mode 100644 index 0000000..7e00c2b --- /dev/null +++ b/.github/workflows/push_nuget.yml @@ -0,0 +1,35 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: publish + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Build + run: | + dotnet build ./src -c Release + - name: Pack + run: | + dotnet pack ./src/AutoInjectGenerator/AutoInjectGenerator.csproj -c Release -o publish/autoinject + - name: Push + run: | + dotnet nuget push 'publish/autoinject/*.nupkg' -s https://api.nuget.org/v3/index.json -k ${{secrets.AUTOINJECT}} --skip-duplicate + - name: Pack + run: | + dotnet pack ./src/AutoWasmApiGenerator/AutoWasmApiGenerator.csproj -c Release -o publish/autowasmapi + - name: Push + run: | + dotnet nuget push 'publish/autowasmapi/*.nupkg' -s https://api.nuget.org/v3/index.json -k ${{secrets.AUTOWASMAPI}} --skip-duplicate diff --git a/src/AutoInjectGenerator/AutoInjectGenerator.csproj b/src/AutoInjectGenerator/AutoInjectGenerator.csproj index e365279..f8b33a0 100644 --- a/src/AutoInjectGenerator/AutoInjectGenerator.csproj +++ b/src/AutoInjectGenerator/AutoInjectGenerator.csproj @@ -10,11 +10,17 @@ True MarvelTiter 0.0.1 + MIT + readme.md + + + + diff --git a/src/AutoInjectGenerator/readme.md b/src/AutoInjectGenerator/readme.md new file mode 100644 index 0000000..f4fa8bc --- /dev/null +++ b/src/AutoInjectGenerator/readme.md @@ -0,0 +1,5 @@ +`AutoInjectAttribute` + +`AutoInjectContextAttribute` + +`AutoInjectConfiguration` \ No newline at end of file diff --git a/src/AutoWasmApiGenerator/AutoWasmApiGenerator.csproj b/src/AutoWasmApiGenerator/AutoWasmApiGenerator.csproj index a7ef03a..e592228 100644 --- a/src/AutoWasmApiGenerator/AutoWasmApiGenerator.csproj +++ b/src/AutoWasmApiGenerator/AutoWasmApiGenerator.csproj @@ -10,6 +10,8 @@ True MarvelTiter 0.0.1 + MIT + readme.md @@ -20,5 +22,9 @@ + + + + diff --git a/src/AutoWasmApiGenerator/readme.md b/src/AutoWasmApiGenerator/readme.md new file mode 100644 index 0000000..12a3060 --- /dev/null +++ b/src/AutoWasmApiGenerator/readme.md @@ -0,0 +1,5 @@ +`WebControllerAttribute` + +`ApiInvokerGeneraAttribute` + +`WebMethodAttribute` \ No newline at end of file diff --git a/src/MT.Generators.sln b/src/MT.Generators.sln index 27e89db..32e0152 100644 --- a/src/MT.Generators.sln +++ b/src/MT.Generators.sln @@ -21,9 +21,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "AutoWasm", "AutoWasm", "{0D EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AutoWasmApi.Roslyn", "AutoWasmApi.Roslyn\AutoWasmApi.Roslyn.csproj", "{625157FF-90BB-4950-9643-7BAEF5CEF6A8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Blazor.Test", "Blazor.Test\Blazor.Test\Blazor.Test.csproj", "{4A47713C-2332-40C1-9AAB-7B2A14D148A2}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Test", "Blazor.Test\Blazor.Test\Blazor.Test.csproj", "{4A47713C-2332-40C1-9AAB-7B2A14D148A2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Blazor.Test.Client", "Blazor.Test\Blazor.Test.Client\Blazor.Test.Client.csproj", "{20CA19C8-3036-4D1B-B095-C59A4C76B8D0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Blazor.Test.Client", "Blazor.Test\Blazor.Test.Client\Blazor.Test.Client.csproj", "{20CA19C8-3036-4D1B-B095-C59A4C76B8D0}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution