Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.ApplicationInsights

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.ApplicationInsights_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.AspNetCore

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.AspNetCore_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Cqrs.Abstractions

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Cqrs.Abstractions_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Cqrs.FluentValidations

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Cqrs.FluentValidations_*'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Allegro.Extensions.Cqrs.publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Cqrs

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Cqrs_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Dapper.Postgres

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Dapper.Postgres_*'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Allegro.Extensions.Dapper.publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Dapper

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Dapper_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.DependencyCall

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.DependencyCall_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish Allegro.Extensions.Financials

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Financials_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Globalization

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Globalization_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Identifiers.Abstractions

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Identifiers.Abstractions_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Identifiers.AspNetCore

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Identifiers.AspNetCore_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.NullableReferenceTypes

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.NullableReferenceTypes_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.RateLimiting

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.RateLimiting_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Serialization

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Serialization_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Publish Allegro.Extensions.Validators

on:
workflow_dispatch: {}
push:
tags:
- 'Allegro.Extensions.Validators_*'
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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##*_}
Expand Down
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down