diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5d7b0af --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: ci + +on: + push: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..1541736 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +name: release + +on: + push: + tags: + - '*.*.*' + +env: + NUGET_DIRECTORY: ${{ github.workspace }}/nuget + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Pack + run: dotnet pack --configuration Release --output ${{ env.NUGET_DIRECTORY }} + + - name: Publish + run: | + for file in $(find "${{ env.NUGET_DIRECTORY }}" -type f -name "*.nupkg"); do + dotnet nuget push "$file" --api-key "${{ secrets.GH_NUGET }}" --source https://nuget.pkg.github.com/ellizio/index.json --skip-duplicate + done \ No newline at end of file diff --git a/src/Kiota.Autogen.Swagger/Kiota.Autogen.Swagger.csproj b/src/Kiota.Autogen.Swagger/Kiota.Autogen.Swagger.csproj index 3014225..48a1708 100644 --- a/src/Kiota.Autogen.Swagger/Kiota.Autogen.Swagger.csproj +++ b/src/Kiota.Autogen.Swagger/Kiota.Autogen.Swagger.csproj @@ -3,6 +3,16 @@ netstandard2.0 enable + latest + + Kiota.Autogen.Swagger + Kiota.Autogen.Swagger + 1.15.0 + ellizio + Description test + https://github.com/ellizio/Kiota.Autogen + https://github.com/ellizio/Kiota.Autogen + Kiota;OpenAPI;Client;Swagger;Generation;CodeGen diff --git a/src/Kiota.Autogen.Swagger/build/Kiota.Autogen.Swagger.targets b/src/Kiota.Autogen.Swagger/build/Kiota.Autogen.Swagger.targets index 965b92e..799ea88 100644 --- a/src/Kiota.Autogen.Swagger/build/Kiota.Autogen.Swagger.targets +++ b/src/Kiota.Autogen.Swagger/build/Kiota.Autogen.Swagger.targets @@ -2,9 +2,10 @@ - @(ProjectReference) - - + @(ProjectReference) + + + 1.15.0 @@ -17,29 +18,29 @@ - + - - + + - + - - + + - +