Skip to content

Commit

Permalink
fix: update pre-release version format
Browse files Browse the repository at this point in the history
  • Loading branch information
yufeih committed Jan 13, 2024
1 parent 6f8e2ce commit 1d31fce
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,19 +91,21 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
depth: 0
fetch-depth: 0

- id: version
uses: paulhatch/[email protected]
with:
version_format: ${major}.${minor}.${patch}-preview.${increment}

- uses: ./.github/actions/build

- name: dotnet pack
run: dotnet pack -c Release /p:Version=${{ steps.versioning.outputs.version }} -o drop/nuget
run: dotnet pack -c Release /p:Version=${{ steps.version.outputs.version }} -o drop/nuget

- name: dotnet nuget push
run: |
dotnet nuget push drop/nuget/*.nupkg --api-key "${{ secrets.NUGET_KEY }}" --skip-duplicate --source https://api.nuget.org/v3/index.json
dotnet nuget push drop/nuget/*.nupkg --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate --source https://nuget.pkg.github.com/dotnet/index.json
publish-docs:
if: github.ref == 'refs/heads/main'
Expand Down

0 comments on commit 1d31fce

Please sign in to comment.