Skip to content

Commit 967dbc4

Browse files
committed
Allow a v-prefixed version
1 parent dea3c37 commit 967dbc4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/Crate-publishing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
cargo test
7676
7777
- name: '📦 Cargo Publish'
78-
if: startsWith(github.ref, 'refs/tags') && contains(matrix.config.os, 'ubuntu')
78+
if: startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v') && contains(matrix.config.os, 'ubuntu')
7979
env:
8080
TOKEN: ${{ secrets.cratesio_token }}
8181
UNICORN_VERSION: dev

.github/workflows/Nuget-publishing.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,12 @@ jobs:
429429
path: ${{ github.workspace }}/bindings/dotnet/UnicornEngine/bin/Release/UnicornEngine.Unicorn.*.nupkg
430430

431431
- name: 📦 Publish to Github Packages
432-
if: startsWith(github.ref, 'refs/tags')
432+
if: startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')
433433
working-directory: bindings/dotnet/UnicornEngine
434434
run: dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" --source "github" --api-key "${{ secrets.GHPR_TOKEN }}"
435435

436436
- name: 📦 Publish Nuget package
437-
if: startsWith(github.ref, 'refs/tags')
437+
if: startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')
438438
working-directory: bindings/dotnet/UnicornEngine
439439
run: dotnet nuget push "bin/Release/UnicornEngine.Unicorn.*.nupkg" -k "$NUGET_AUTH_TOKEN" -s https://api.nuget.org/v3/index.json
440440
env:

.github/workflows/build-wheels-publish.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434

3535
env:
3636
# Enable DEBUG flag either according to the tag release or manual override
37-
UNICORN_DEBUG: ${{ inputs.debugMode != '' && inputs.debugMode || startsWith(github.ref, 'refs/tags') && '0' || contains(github.event.head_commit.message, 'CI(release)') && '0' || '1' }}
37+
UNICORN_DEBUG: ${{ inputs.debugMode != '' && inputs.debugMode || (startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')) && '0' || contains(github.event.head_commit.message, 'CI(release)') && '0' || '1' }}
3838

3939
jobs:
4040
# job to be executed for every push - testing purpose
@@ -218,7 +218,7 @@ jobs:
218218
- { os: macos-latest, arch: arm64, cibw_build: 'cp*', cibw_skip: '*36* *37* *38*' }
219219
- { os: windows-2022, arch: AMD64, cibw_build: 'cp*', cibw_skip: '*36* *38*' }
220220
- { os: windows-2022, arch: x86, cibw_build: 'cp*', cibw_skip: '*36* *38*' }
221-
if: ${{ inputs.fullMode == 1 || startsWith(github.ref, 'refs/tags') || contains(github.event.head_commit.message, 'CI(full)') }}
221+
if: ${{ inputs.fullMode == 1 || (startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')) || contains(github.event.head_commit.message, 'CI(full)') }}
222222
steps:
223223
- uses: actions/checkout@v4
224224
with:
@@ -310,7 +310,7 @@ jobs:
310310
permissions:
311311
id-token: write
312312
runs-on: ubuntu-latest
313-
if: startsWith(github.ref, 'refs/tags')
313+
if: startsWith(github.ref, 'refs/tags') && !startsWith(github.ref, 'refs/tags/v')
314314
steps:
315315
- uses: actions/download-artifact@v4
316316
with:

0 commit comments

Comments
 (0)