Skip to content

Commit

Permalink
Update GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
aiqinxuancai committed Dec 27, 2023
1 parent 486b145 commit 414ece2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,13 @@ jobs:
- name: Build
run: dotnet build --configuration Release --no-restore

- name: Extract tag name
id: get_version
run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF#refs/tags/})"
shell: bash

- name: Pack
run: dotnet pack TiktokenSharp/TiktokenSharp.csproj --configuration Release --no-build -o nupkgs
run: dotnet pack TiktokenSharp/TiktokenSharp.csproj --configuration Release /p:VersionPrefix=${{ steps.get_version.outputs.tag }} --no-build -o nupkgs

- name: Determine Pre-release Status
id: prerelease
Expand Down

0 comments on commit 414ece2

Please sign in to comment.