Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: adding tagging to build #5

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,22 @@ jobs:
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer

- uses: paulhatch/semantic-version@v5.4.0
name: version
name: Generate version number
id: version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Install the .NET SDK indicated in the global.json file
- name: Setup .NET
uses: actions/setup-dotnet@v4
- uses: mathieudutour/github-tag-action@v6.2
name: Create tag
id: tag_version
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.version.outputs.version }}

# Install the .NET SDK indicated in the global.json file
- uses: actions/setup-dotnet@v4
name: Setup .NET

# Create the NuGet package in the folder from the environment variable NuGetDirectory
- run: dotnet pack ${{ env.SolutionPath }} --configuration ${{ env.BuildConfigutation }} --output ${{ env.NuGetDirectory }} --property:Version=${{ steps.version.outputs.version }} --include-symbols

Expand Down