Skip to content

Commit

Permalink
add option for preview suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
Marchhill committed Sep 6, 2024
1 parent c2b52b6 commit 7baf678
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ on:
description: blst version
required: false

preview:
default: true
description: use preview suffix?
required: true
type: boolean

env:
RETENTION: 2

Expand Down Expand Up @@ -139,8 +145,8 @@ jobs:
- name: Build
working-directory: src/Nethermind.Crypto.Bls
run: |
dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore -p:VersionSuffix=preview.${{ github.run_number }}
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build -p:VersionSuffix=preview.${{ github.run_number }}
dotnet build -c ${{ env.BUILD_CONFIG }} --no-restore ${{ inputs.preview && format('-p:VersionSuffix=preview.{0}', github.run_number) || '' }}
dotnet pack -c ${{ env.BUILD_CONFIG }} --no-build ${{ inputs.preview && format('-p:VersionSuffix=preview.{0}', github.run_number) || '' }}
- name: Test
working-directory: src/Nethermind.Crypto.Test
Expand Down

0 comments on commit 7baf678

Please sign in to comment.