-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from deveel/artifact-versioning
Artifact Versioning
- Loading branch information
Showing
4 changed files
with
54 additions
and
40 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -55,20 +55,28 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup GitFlow | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
|
||
- name: Determine Version | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- name: Setup .NET 8.0 Framework | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Build | ||
run: dotnet build -c Release --version-suffix $GITHUB_RUN_ID | ||
run: dotnet build -c Release --no-restore /p:Version="${{ env.GitVersion_SemVer }}" /p:AssemblyVersion="${{ env.GitVersion_AssemblySemVer }}" /p:FileVersion="${{ env.GitVersion_AssemblySemFileVer }}" | ||
|
||
- name: Pack NuGet | ||
run: dotnet pack -c Release --no-build --include-symbols --include-source --version-suffix $GITHUB_RUN_ID -o ./nuget | ||
- name: Push NutGet | ||
run: dotnet nuget push ./nuget/*.nupkg -s "https://nuget.pkg.github.com/deveel/index.json" --skip-duplicate --api-key ${{secrets.GITHUB_TOKEN}} | ||
- name: Pack the Nuget Packages | ||
run: dotnet pack -c Release --no-build --no-restore --include-symbols --include-source --output nupkgs /p:PackageVersion="${{ env.GitVersion_NuGetVersionV2 }}" | ||
|
||
- name: Publish the Nuget Packages to the GitHub Package Registry | ||
run: dotnet nuget push **/*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/deveel/index.json" | ||
|
||
clean: | ||
name: "Clean Old Packages" | ||
|
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
mode: ContinuousDeployment | ||
branches: | ||
main: | ||
tag: '' | ||
increment: Patch | ||
regex: ^main$ | ||
source-branches: ['feature'] | ||
prevent-increment-of-merged-branch-version: true | ||
tracks-release-branches: true | ||
is-release-branch: true | ||
feature: | ||
tag: useBranchName | ||
increment: None | ||
regex: ^feature[-/] | ||
source-branches: ['main'] | ||
tracks-release-branches: false | ||
is-release-branch: false | ||
ignore: | ||
sha: [] | ||
merge-message-formats: {} | ||
commit-message-incrementing: Enabled | ||
assembly-versioning-scheme: MajorMinorPatch | ||
continuous-delivery-fallback-tag: alpha |