-
Notifications
You must be signed in to change notification settings - Fork 72
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 #383 from DarthAffe/WorkflowImprovements
Workflow improvements
- Loading branch information
Showing
2 changed files
with
18 additions
and
27 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 |
---|---|---|
@@ -1,12 +1,15 @@ | ||
name: RGB.NET-CI | ||
|
||
on: | ||
push: | ||
branches: [ Development ] | ||
paths: | ||
- '**.cs' | ||
- '**.csproj' | ||
- '**.yml' | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'version' | ||
required: true | ||
type: string | ||
increment: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
|
@@ -24,16 +27,10 @@ jobs: | |
8.0.x | ||
7.0.x | ||
6.0.x | ||
- name: Git Semantic Version | ||
id: versioning | ||
uses: PaulHatch/[email protected] | ||
with: | ||
short_tags: false | ||
format: "${major}.${minor}.${patch}-prerelease.${increment}" | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore --configuration Release /p:Version=${{ steps.versioning.outputs.version }} | ||
run: dotnet build --no-restore --configuration Release /p:Version=${{ github.event.inputs.version }}-prerelease.${{ github.event.inputs.increment }} | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal --configuration Release | ||
- name: Upload a Build Artifact NET6 | ||
|
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,12 +1,12 @@ | ||
name: RGB.NET-Release | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
paths: | ||
- '**.cs' | ||
- '**.csproj' | ||
- '**.yml' | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'version' | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
build: | ||
|
@@ -23,16 +23,10 @@ jobs: | |
8.0.x | ||
7.0.x | ||
6.0.x | ||
- name: Git Semantic Version | ||
id: versioning | ||
uses: PaulHatch/[email protected] | ||
with: | ||
short_tags: false | ||
format: "${major}.${minor}.${patch}" | ||
- name: Restore dependencies | ||
run: dotnet restore | ||
- name: Build | ||
run: dotnet build --no-restore --configuration Release /p:Version=${{ steps.versioning.outputs.version }} | ||
run: dotnet build --no-restore --configuration Release /p:Version=${{ github.event.inputs.version }} | ||
- name: Test | ||
run: dotnet test --no-build --verbosity normal --configuration Release | ||
- name: Upload a Build Artifact NET6 | ||
|
@@ -62,7 +56,7 @@ jobs: | |
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: ${{ steps.versioning.outputs.version_tag }} | ||
tag_name: v${{ github.event.inputs.version }} | ||
generate_release_notes: true | ||
files: bin/net8.0/RGB.NET.*.dll | ||
- name: Nuget Push | ||
|