We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d034c5d + 638ed0d commit 789d50cCopy full SHA for 789d50c
.github/workflows/dotnet.yml
@@ -37,19 +37,12 @@ jobs:
37
VERSION_REGEX: '<AssemblyVersion>(.*)<\/AssemblyVersion>'
38
NUGET_KEY: ${{secrets.NUGET_KEY}}
39
if: github.event_name != 'pull_request'
40
-
41
- - name: Retrieve version
42
- id: proj_version
43
- uses: KageKirin/get-csproj-version@v0
44
- with:
45
- file: src/sika/sika.csproj
46
- xpath: '//PropertyGroup/AssemblyVersion'
47
48
- name: Create release
49
env:
50
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51
- VERSION: ${{ steps.proj_version.version }}
52
run: |
53
- gh release create "v$VERSION" \
+ version="$(grep '<AssemblyVersion>' src/sika/sika.csproj | grep -oE '([0-9]+\.){2}[0-9]+')"
+ gh release create "v$version" \
54
--repo="$GITHUB_REPOSITORY" \
55
--generate-notes
0 commit comments