Skip to content

Commit

Permalink
Fixes tag name
Browse files Browse the repository at this point in the history
  • Loading branch information
RainOrigami committed Sep 8, 2023
1 parent 9d85aad commit 34f5ab2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,15 @@ jobs:
- name: Create NuGet package
run: dotnet pack BBRAPIModules/BBRAPIModules.csproj --configuration Release --output ./nuget

- name: Zip Published Files
run: |
find ./publish -type f ! -name '*.pdb' -exec zip -r ./$(basename ${{ github.ref }}).zip {} \;

- name: Generate changelog
id: generate-changelog
run: |
tag_name="${{ github.ref }}"
tag_name="$(basename ${{ github.ref }})"
previous_tag=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1))
changelog=$(git log --pretty=format:"- %s" $previous_tag..$tag_name)
echo "::set-output name=changelog::$changelog"
Expand All @@ -51,7 +56,7 @@ jobs:
files: |
publish/*
nuget/*.nupkg
tag_name: ${{ github.ref }}
tag_name: $(basename ${{ github.ref }})
body: ${{ steps.generate-changelog.outputs.changelog }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 34f5ab2

Please sign in to comment.