-
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.
* fix(#5): nupkg versioning update * fix(#5): Fix git versioning * fix(#5): Optimize pipeline * fix(#5): introduced manual release drafter (actual release)
- Loading branch information
Showing
5 changed files
with
32 additions
and
17 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 |
---|---|---|
|
@@ -10,7 +10,15 @@ on: | |
- opened | ||
- reopened | ||
- synchronize | ||
workflow_dispatch: {} | ||
workflow_dispatch: | ||
inputs: | ||
release-type: | ||
type: choice | ||
default: prerelease | ||
description: Release Type | ||
options: | ||
- release | ||
- prerelease | ||
|
||
concurrency: | ||
group: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref }} | ||
|
@@ -25,5 +33,7 @@ jobs: | |
steps: | ||
- name: "Draft Release" | ||
uses: release-drafter/[email protected] | ||
with: | ||
prerelease: ${{ github.event.inputs.release-type == 'prerelease' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_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 |
---|---|---|
|
@@ -8,12 +8,11 @@ on: | |
release: | ||
types: | ||
- published | ||
workflow_dispatch: {} | ||
workflow_dispatch: {} | ||
|
||
env: | ||
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 | ||
DOTNET_NOLOGO: true | ||
NUGET_DIR: ${{ github.workspace}}/nuget | ||
|
||
jobs: | ||
publish: | ||
|
@@ -26,10 +25,7 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.x' | ||
|
||
- name: Setup .NET Core SDK 8 | ||
uses: actions/setup-dotnet@v4 | ||
with: | ||
|
@@ -38,11 +34,6 @@ jobs: | |
- name: Restore .NET Packages | ||
run: dotnet restore | ||
|
||
- name: Determine Version | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
useConfigFile: true | ||
|
||
- name: Build .NET Solution | ||
run: dotnet build --configuration Release --no-restore | ||
|
||
|
@@ -55,9 +46,16 @@ jobs: | |
run: dotnet nuget push pack/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json" | ||
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }} | ||
|
||
- name: Publish .NET Solution to NuGet.org | ||
env: | ||
apikey: ${{ secrets.NUGET_ORG_KEY }} | ||
- name: Store .NET Package | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: nuget | ||
if-no-files-found: error | ||
retention-days: 7 | ||
path: pack/*.(s?)nupkg | ||
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }} | ||
run: dotnet nuget push pack/*.nupkg --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget | ||
|
||
- name: Publish .NET Solution to NuGet.org | ||
continue-on-error: true | ||
run: dotnet nuget push pack/*.nupkg --api-key ${{ secrets.NUGET_ORG_KEY }} --source nuget | ||
if: ${{ github.event_name == 'release' && github.ref_type == 'tag' || github.event.release.tag_name }} |
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 |
---|---|---|
@@ -1,4 +1,6 @@ | ||
mode: ContinuousDeployment | ||
branches: | ||
master: | ||
mode: ContinuousDeployment | ||
tag: rc | ||
pull-request: | ||
tag: pr |