diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml new file mode 100644 index 0000000..7c30539 --- /dev/null +++ b/.github/workflows/manual-release.yml @@ -0,0 +1,45 @@ +name: "Webhooks Release (Manual)" + +on: + workflow_dispatch: + inputs: + version: + type: string + description: 'Version number' + required: true + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup .NET 6.0 + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + - name: Add Deveel GitHub NuGet Source + run: dotnet nuget add source "https://nuget.pkg.github.com/deveel/index.json" -n "Deveel GitHub" -u ${{ secrets.DEVEEL_NUGET_USER }} -p ${{ secrets.DEVEEL_NUGET_TOKEN }} --store-password-in-clear-text + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore -c Release /p:Version=${{ inputs.version }} + + - name: Test + run: dotnet test --no-build --verbosity normal -c Release /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:Exclude="[*.XUnit]*" + + - name: Collect to Codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.OCM_CODECOV_TOKEN }} + + - name: Pack + run: dotnet pack --configuration Release --no-restore --no-build --include-symbols -p:PackageVersion=$VERSION --output ./nuget + + - name: Push Packages to GitHub NuGet + + run: dotnet nuget push ./nuget/**/*.nupkg --skip-duplicate --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json diff --git a/samples/WebhookNotifierApp/WebhookNotifierApp.csproj b/samples/WebhookNotifierApp/WebhookNotifierApp.csproj index cf66398..2461112 100644 --- a/samples/WebhookNotifierApp/WebhookNotifierApp.csproj +++ b/samples/WebhookNotifierApp/WebhookNotifierApp.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/Deveel.Webhooks.Service.EntityFramework/Deveel.Webhooks.EntityFramework.csproj b/src/Deveel.Webhooks.Service.EntityFramework/Deveel.Webhooks.EntityFramework.csproj index 8e5d3f5..b2d3802 100644 --- a/src/Deveel.Webhooks.Service.EntityFramework/Deveel.Webhooks.EntityFramework.csproj +++ b/src/Deveel.Webhooks.Service.EntityFramework/Deveel.Webhooks.EntityFramework.csproj @@ -11,7 +11,7 @@ - + diff --git a/src/Deveel.Webhooks.Service.MongoDb/Deveel.Webhooks.MongoDb.csproj b/src/Deveel.Webhooks.Service.MongoDb/Deveel.Webhooks.MongoDb.csproj index 86b007b..261cf91 100644 --- a/src/Deveel.Webhooks.Service.MongoDb/Deveel.Webhooks.MongoDb.csproj +++ b/src/Deveel.Webhooks.Service.MongoDb/Deveel.Webhooks.MongoDb.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/Deveel.Webhooks.Service/Deveel.Webhooks.Service.csproj b/src/Deveel.Webhooks.Service/Deveel.Webhooks.Service.csproj index 528c846..e268c1c 100644 --- a/src/Deveel.Webhooks.Service/Deveel.Webhooks.Service.csproj +++ b/src/Deveel.Webhooks.Service/Deveel.Webhooks.Service.csproj @@ -8,7 +8,7 @@ - +