diff --git a/.github/workflows/Allegro.Extensions.ApplicationInsights.publish.yml b/.github/workflows/Allegro.Extensions.ApplicationInsights.publish.yml index 847f428..402a71e 100644 --- a/.github/workflows/Allegro.Extensions.ApplicationInsights.publish.yml +++ b/.github/workflows/Allegro.Extensions.ApplicationInsights.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.ApplicationInsights on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.ApplicationInsights_*' diff --git a/.github/workflows/Allegro.Extensions.AspNetCore.publish.yml b/.github/workflows/Allegro.Extensions.AspNetCore.publish.yml index f6b0e7e..3e07987 100644 --- a/.github/workflows/Allegro.Extensions.AspNetCore.publish.yml +++ b/.github/workflows/Allegro.Extensions.AspNetCore.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.AspNetCore on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.AspNetCore_*' diff --git a/.github/workflows/Allegro.Extensions.Cqrs.Abstractions.publish.yml b/.github/workflows/Allegro.Extensions.Cqrs.Abstractions.publish.yml index dbb7c2a..9db9bd3 100644 --- a/.github/workflows/Allegro.Extensions.Cqrs.Abstractions.publish.yml +++ b/.github/workflows/Allegro.Extensions.Cqrs.Abstractions.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Cqrs.Abstractions on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Cqrs.Abstractions_*' diff --git a/.github/workflows/Allegro.Extensions.Cqrs.FluentValidations.publish.yml b/.github/workflows/Allegro.Extensions.Cqrs.FluentValidations.publish.yml index 8041153..12fe410 100644 --- a/.github/workflows/Allegro.Extensions.Cqrs.FluentValidations.publish.yml +++ b/.github/workflows/Allegro.Extensions.Cqrs.FluentValidations.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Cqrs.FluentValidations on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Cqrs.FluentValidations_*' diff --git a/.github/workflows/Allegro.Extensions.Cqrs.publish.yml b/.github/workflows/Allegro.Extensions.Cqrs.publish.yml index 1b2c234..1df4d26 100644 --- a/.github/workflows/Allegro.Extensions.Cqrs.publish.yml +++ b/.github/workflows/Allegro.Extensions.Cqrs.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Cqrs on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Cqrs_*' diff --git a/.github/workflows/Allegro.Extensions.Dapper.Postgres.publish.yml b/.github/workflows/Allegro.Extensions.Dapper.Postgres.publish.yml index b72e09b..62b061c 100644 --- a/.github/workflows/Allegro.Extensions.Dapper.Postgres.publish.yml +++ b/.github/workflows/Allegro.Extensions.Dapper.Postgres.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Dapper.Postgres on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Dapper.Postgres_*' diff --git a/.github/workflows/Allegro.Extensions.Dapper.publish.yml b/.github/workflows/Allegro.Extensions.Dapper.publish.yml index d33c278..b5028b3 100644 --- a/.github/workflows/Allegro.Extensions.Dapper.publish.yml +++ b/.github/workflows/Allegro.Extensions.Dapper.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Dapper on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Dapper_*' diff --git a/.github/workflows/Allegro.Extensions.DependencyCall.publish.yml b/.github/workflows/Allegro.Extensions.DependencyCall.publish.yml index 1d79b00..212ccdc 100644 --- a/.github/workflows/Allegro.Extensions.DependencyCall.publish.yml +++ b/.github/workflows/Allegro.Extensions.DependencyCall.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.DependencyCall on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.DependencyCall_*' diff --git a/.github/workflows/Allegro.Extensions.Financials.publish.yml b/.github/workflows/Allegro.Extensions.Financials.publish.yml index 07e3174..a22a703 100644 --- a/.github/workflows/Allegro.Extensions.Financials.publish.yml +++ b/.github/workflows/Allegro.Extensions.Financials.publish.yml @@ -1,6 +1,6 @@ name: Publish Allegro.Extensions.Financials - on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Financials_*' diff --git a/.github/workflows/Allegro.Extensions.Globalization.publish.yml b/.github/workflows/Allegro.Extensions.Globalization.publish.yml index a419046..ed23d2d 100644 --- a/.github/workflows/Allegro.Extensions.Globalization.publish.yml +++ b/.github/workflows/Allegro.Extensions.Globalization.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Globalization on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Globalization_*' diff --git a/.github/workflows/Allegro.Extensions.Identifiers.Abstractions.publish.yml b/.github/workflows/Allegro.Extensions.Identifiers.Abstractions.publish.yml index 31e6782..87f98ab 100644 --- a/.github/workflows/Allegro.Extensions.Identifiers.Abstractions.publish.yml +++ b/.github/workflows/Allegro.Extensions.Identifiers.Abstractions.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Identifiers.Abstractions on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Identifiers.Abstractions_*' diff --git a/.github/workflows/Allegro.Extensions.Identifiers.AspNetCore.publish.yml b/.github/workflows/Allegro.Extensions.Identifiers.AspNetCore.publish.yml index b40bc7b..80c74ab 100644 --- a/.github/workflows/Allegro.Extensions.Identifiers.AspNetCore.publish.yml +++ b/.github/workflows/Allegro.Extensions.Identifiers.AspNetCore.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Identifiers.AspNetCore on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Identifiers.AspNetCore_*' diff --git a/.github/workflows/Allegro.Extensions.NullableReferenceTypes.publish.yml b/.github/workflows/Allegro.Extensions.NullableReferenceTypes.publish.yml index 600516a..bf31c3e 100644 --- a/.github/workflows/Allegro.Extensions.NullableReferenceTypes.publish.yml +++ b/.github/workflows/Allegro.Extensions.NullableReferenceTypes.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.NullableReferenceTypes on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.NullableReferenceTypes_*' diff --git a/.github/workflows/Allegro.Extensions.RateLimiting.publish.yml b/.github/workflows/Allegro.Extensions.RateLimiting.publish.yml index fc4dc1a..c870c56 100644 --- a/.github/workflows/Allegro.Extensions.RateLimiting.publish.yml +++ b/.github/workflows/Allegro.Extensions.RateLimiting.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.RateLimiting on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.RateLimiting_*' diff --git a/.github/workflows/Allegro.Extensions.Serialization.publish.yml b/.github/workflows/Allegro.Extensions.Serialization.publish.yml index 3687321..5875545 100644 --- a/.github/workflows/Allegro.Extensions.Serialization.publish.yml +++ b/.github/workflows/Allegro.Extensions.Serialization.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Serialization on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Serialization_*' diff --git a/.github/workflows/Allegro.Extensions.Validators.publish.yml b/.github/workflows/Allegro.Extensions.Validators.publish.yml index d512e27..dd9792a 100644 --- a/.github/workflows/Allegro.Extensions.Validators.publish.yml +++ b/.github/workflows/Allegro.Extensions.Validators.publish.yml @@ -1,6 +1,7 @@ name: Publish Allegro.Extensions.Validators on: + workflow_dispatch: {} push: tags: - 'Allegro.Extensions.Validators_*' diff --git a/.github/workflows/template.yml b/.github/workflows/template.yml index 0794fa7..23271ca 100644 --- a/.github/workflows/template.yml +++ b/.github/workflows/template.yml @@ -45,10 +45,16 @@ jobs: - name: Test run: dotnet test -c Release --no-build --verbosity normal - name: Pack + if: ${{ github.ref == 'refs/heads/main' }} run: dotnet pack -v normal -c Release --no-build --include-symbols --include-source -o package + - name: Pack BETA + if: ${{ github.ref != 'refs/heads/main' }} + run: | + SUFFIX=$(echo "beta-${{ github.run_number }}.${{ github.run_attempt }}" | tr "/" ".") + dotnet pack -v normal -c Release --no-build --include-symbols --include-source -o package --version-suffix $SUFFIX - name: Verify package name & version id: nupkg - if: inputs.publish + if: ${{ inputs.publish && github.ref == 'refs/heads/main' }} run: | TAG_NAME=${{ inputs.tagName }} VERSION=${TAG_NAME##*_} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index efa72b3..859d58a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,16 @@ # Contributing +## How to produce Beta package + +1. Go to Github Actions tab +2. Select a pipeline referencing your project, e.g. [Build Allegro.Extensions.AspNetCore](https://github.com/allegro/dotnet-utils/actions/workflows/Allegro.Extensions.AspNetCore.ci.yml) +3. Click `Run workflow` +4. Select your branch. + +> NOTE: +> +> Pipeline will produce a package with `version-beta` name, where `version` is fetched from `version.xml` file. + ## Pull requests * for small changes, no need to add separate issue, defining problem in pull request is enough