Skip to content

Commit

Permalink
Merge branch '103' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Sharp0802 authored Sep 26, 2024
2 parents d034c5d + 638ed0d commit 789d50c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,12 @@ jobs:
VERSION_REGEX: '<AssemblyVersion>(.*)<\/AssemblyVersion>'
NUGET_KEY: ${{secrets.NUGET_KEY}}
if: github.event_name != 'pull_request'

- name: Retrieve version
id: proj_version
uses: KageKirin/get-csproj-version@v0
with:
file: src/sika/sika.csproj
xpath: '//PropertyGroup/AssemblyVersion'

- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.proj_version.version }}
run: |
gh release create "v$VERSION" \
version="$(grep '<AssemblyVersion>' src/sika/sika.csproj | grep -oE '([0-9]+\.){2}[0-9]+')"
gh release create "v$version" \
--repo="$GITHUB_REPOSITORY" \
--generate-notes

0 comments on commit 789d50c

Please sign in to comment.