From 9ea3f5cd9697996c3f5b59d9a4670690f70973b2 Mon Sep 17 00:00:00 2001 From: Leonardo Porro Date: Mon, 22 Jan 2024 01:13:47 -0300 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f98d0a..dfb29bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: Release Workflow +name: Release on: create: @@ -6,28 +6,24 @@ on: - 'release/*' jobs: - build-and-publish: + release: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Set up .NET Core uses: actions/setup-dotnet@v3 with: dotnet-version: '8.x.x' # You can adjust the version if needed - - - name: Extract version - run: | - version=$(echo "${{ github.ref }}" | sed 's/refs\/heads\/release\///') - echo "Version extracted from branch name: $version" - id: extract-version - + - name: Build run: | + version=$(echo "${{ github.ref }}" | sed 's/refs\/heads\/release\///') + echo $version dotnet restore - dotnet build --configuration Release + dotnet build --configuration Release -p:Version=$version - name: Push run: | packages=$(find . -name '*.nupkg')