-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
11 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 |
---|---|---|
|
@@ -16,21 +16,15 @@ jobs: | |
with: | ||
dotnet-version: 8.0.x | ||
|
||
- name: Set up Git for tagging | ||
run: | | ||
git config user.name "github-actions" | ||
git config user.email "[email protected]" | ||
- name: Extract version from tag | ||
id: get_version | ||
run: | | ||
echo "##[set-output name=version;]${GITHUB_REF##*/}" | ||
- id: get_version | ||
name: Get version | ||
uses: jannemattila/get-version-from-tag@v3 | ||
|
||
- name: Update Assembly and NuGet package version | ||
run: | | ||
version=${{ steps.get_version.outputs.version }} | ||
echo "Updating Assembly and NuGet package versions to ${version}" | ||
sed -i "s/<VersionPrefix>.*<\/VersionPrefix>/<VersionPrefix>${version}<\/VersionPrefix>/g" ./src/ApimSanitizer.csproj | ||
sed -i "s/<VersionPrefix>.*<\/VersionPrefix>/<VersionPrefix>${version}<\/VersionPrefix>/g" ./ApimSanitizer.csproj | ||
working-directory: src | ||
|
||
- name: Build the project | ||
|
@@ -57,7 +51,9 @@ jobs: | |
Release version ${{ steps.get_version.outputs.version }}. | ||
draft: false | ||
prerelease: false | ||
files: ./artifacts/*.nupkg | ||
files: ./artifacts/*.nupkg | ||
working-directory: src | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
|