From 31db13cb3d52c79257f9f3cbc5da3ee1628e36f0 Mon Sep 17 00:00:00 2001 From: DarthAffe Date: Thu, 11 Apr 2024 23:24:24 +0200 Subject: [PATCH 1/2] Removed semantic versioning action in ci --- .github/workflows/ci.yml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f951d32e..5dd87e20 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/semantic-version@v4.0.3 - 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 From 835987155c56b1788d03e9105122a88d10bf5d5f Mon Sep 17 00:00:00 2001 From: DarthAffe Date: Thu, 11 Apr 2024 23:30:19 +0200 Subject: [PATCH 2/2] Removed semantiv-versioning from release --- .github/workflows/release.yml | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd31f5e0..25047824 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/semantic-version@v4.0.3 - 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