From 34f5ab2aa76f7bb90c267bb1257eed843b6c21c0 Mon Sep 17 00:00:00 2001 From: RainOrigami Date: Fri, 8 Sep 2023 11:44:58 +0200 Subject: [PATCH] Fixes tag name --- .github/workflows/build-publish.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml index dde4746..f6c38a7 100644 --- a/.github/workflows/build-publish.yml +++ b/.github/workflows/build-publish.yml @@ -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" @@ -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 }}