Skip to content

Commit f873558

Browse files
authored
Update release-package.yml (#26)
1 parent 75e06e8 commit f873558

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/release-package.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,9 @@ jobs:
2727
source-url: https://nuget.pkg.github.com/LEGO/index.json
2828
env:
2929
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
30-
31-
- name: Get last char shortened GITHUB_RUN_ID
32-
id: slug
33-
run: echo "::set-output name=RUNID::$(echo ${GITHUB_RUN_ID} | cut -c1-9)"
34-
30+
3531
- name: Build ${{ matrix.package-name }} project and pack NuGet package
36-
run: dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=0.1.${{ steps.slug.outputs.RUNID }}.$GITHUB_RUN_NUMBER-prerelease
32+
run: dotnet pack src/${{ matrix.package-name }}/${{ matrix.package-name }}.csproj -c Release -o out-${{ matrix.package-name }} -p:PackageVersion=0.1.$GITHUB_RUN_NUMBER.0-prerelease
3733

3834
- name: Push generated package to GitHub Packages registry
3935
run: dotnet nuget push out-${{ matrix.package-name }}/*.nupkg --skip-duplicate -n --api-key ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)