Skip to content

Commit

Permalink
Update Publish-to-NuGet.yml
Browse files Browse the repository at this point in the history
Tidy up and comments
  • Loading branch information
jamiepollock authored Jan 12, 2024
1 parent f841d0b commit 044983e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/Publish-to-NuGet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

name: Publish to NuGet

# on Push tags matching v1.0.0 or v1.0.0-suffix
on:
push:
tags:
Expand All @@ -18,6 +19,7 @@ jobs:
runs-on: ubuntu-latest

steps:
# Setup
- name: Checkout
uses: actions/checkout@v3
with:
Expand All @@ -27,15 +29,17 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x


# Remove 'v' prefix from tag to match NuGet version format
- name: Set Package Version
run: |
echo "PACKAGE_VERSION=${GITHUB_REF_NAME/v/}" >> "$GITHUB_ENV"
- name: Display Package Version
run: |
echo "Version: $PACKAGE_VERSION"
echo "Package Version: $PACKAGE_VERSION"
# Start packaging process
- name: Restore dependencies
run: dotnet restore $SOLUTION

Expand Down

0 comments on commit 044983e

Please sign in to comment.