Skip to content

Commit

Permalink
Update pre-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BiDuang authored Nov 29, 2023
1 parent 1368080 commit b5b3f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Get Previous tag'
- name: Get previous tag
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0
- name: Restore packages
run: dotnet restore ProjBobcat/ProjBobcat.sln
- name: Create the package
run: dotnet pack ProjBobcat/ProjBobcat.sln -c Release -p:PackageVersion="${{ steps.previoustag.outputs.tag }}-ci${{ github.sha }}-beta"
run: $tag="${{ steps.previoustag.outputs.tag }}".substring(1);dotnet pack ProjBobcat/ProjBobcat.sln -c Release -p:PackageVersion="$tag-ci${{ github.sha }}-beta"
- name: Publish the package to NuGet.org
run: dotnet nuget push -k ${{secrets.NUGET_KEY}} -s https://api.nuget.org/v3/index.json "ProjBobcat/ProjBobcat/bin/Release/*.nupkg"

0 comments on commit b5b3f02

Please sign in to comment.