Skip to content

Commit

Permalink
Associate releases with github environments (#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar authored Nov 5, 2024
1 parent 44b20b4 commit 4006bfc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,7 @@ dotnet_diagnostic.CA1816.severity = warning
[Program.cs]
dotnet_diagnostic.CA1050.severity = none
dotnet_diagnostic.S1118.severity = none

[*.{yml,yaml}]
indent_size = 2
end_of_line = lf
6 changes: 6 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ jobs:
release-nugets:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: |-
${{
contains(github.event.release.tag_name, 'preview') && 'test'
|| contains(github.event.release.tag_name, 'rc') && 'staging'
|| 'prod'
}}
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit 4006bfc

Please sign in to comment.