-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0bbc6b6
commit 5f5f09c
Showing
27 changed files
with
100 additions
and
49 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Release common workflow | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
WORKING_DIRECTORY: | ||
required: true | ||
type: string | ||
PROJECT: | ||
required: true | ||
type: string | ||
DOTNET_IMAGE: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ inputs.DOTNET_IMAGE }} | ||
defaults: | ||
run: | ||
working-directory: ${{ inputs.WORKING_DIRECTORY }} | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run tests | ||
run: dotnet test | ||
|
||
- name: Create NuGet package | ||
run: dotnet pack -c Release -o ./artifacts/${{ inputs.PROJECT }} ${{ inputs.PROJECT }} | ||
|
||
- name: Publish NuGet package | ||
run: dotnet nuget push ./artifacts/${{ inputs.PROJECT }}/*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.ZUPIT_NUGET_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Release version endpoint workflow | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
paths: | ||
- Zupit.VersionEndpoint/** | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release-version-endpoint: | ||
uses: ./.github/workflows/release-common.yml | ||
with: | ||
DOTNET_IMAGE: 'mcr.microsoft.com/dotnet/sdk:8.0.101-alpine3.18-amd64' | ||
WORKING_DIRECTORY: Zupit.VersionEndpoint | ||
PROJECT: Zupit.VersionEndpoint | ||
secrets: inherit |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...tApp/Zupit.VersionEndpoint.TestApp.csproj → ...tApp/Zupit.VersionEndpoint.TestApp.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ersionEndpoint.TestApp/packages.lock.json → ...ersionEndpoint.TestApp/packages.lock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
....Tests/Zupit.VersionEndpoint.Tests.csproj → ....Tests/Zupit.VersionEndpoint.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint", "Zupit.VersionEndpoint\Zupit.VersionEndpoint.csproj", "{66278BB8-9CC0-4B84-89FA-9D03EBF2449F}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint.TestApp", "Zupit.VersionEndpoint.TestApp\Zupit.VersionEndpoint.TestApp.csproj", "{F9AF1980-0A3A-4FA0-8337-1950BCF0D34C}" | ||
EndProject | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Zupit.VersionEndpoint.Tests", "Zupit.VersionEndpoint.Tests\Zupit.VersionEndpoint.Tests.csproj", "{B6033ACB-A106-488F-94E5-FC5F72E5610D}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{66278BB8-9CC0-4B84-89FA-9D03EBF2449F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{66278BB8-9CC0-4B84-89FA-9D03EBF2449F}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{66278BB8-9CC0-4B84-89FA-9D03EBF2449F}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{66278BB8-9CC0-4B84-89FA-9D03EBF2449F}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{F9AF1980-0A3A-4FA0-8337-1950BCF0D34C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{F9AF1980-0A3A-4FA0-8337-1950BCF0D34C}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{F9AF1980-0A3A-4FA0-8337-1950BCF0D34C}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{F9AF1980-0A3A-4FA0-8337-1950BCF0D34C}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{B6033ACB-A106-488F-94E5-FC5F72E5610D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{B6033ACB-A106-488F-94E5-FC5F72E5610D}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{B6033ACB-A106-488F-94E5-FC5F72E5610D}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{B6033ACB-A106-488F-94E5-FC5F72E5610D}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
EndGlobal |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.101", | ||
"rollForward": "disable", | ||
"allowPrerelease": false | ||
} | ||
} |
File renamed without changes.
File renamed without changes.