We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29aac8d commit 55334baCopy full SHA for 55334ba
.github/workflows/build.yml
@@ -347,6 +347,15 @@ jobs:
347
name: php${{ matrix.php-version }}-${{ matrix.target }}
348
path: target/php${{ matrix.php-version }}-${{ matrix.target }}-${{ env.EXTENSION_NAME }}.dll
349
350
+ - name: Get Cargo Version
351
+ id: cargo_version
352
+ run: |
353
+ $content = Get-Content -Path .\Cargo.toml
354
+ $versionLine = $content | Select-String -Pattern '^version =' | Select-Object -First 1
355
+ $version = $versionLine -replace 'version = "', '' -replace '"', ''
356
+ echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Append
357
+ shell: pwsh
358
+
359
- name: Create GitHub Release
360
id: create_release
361
uses: softprops/action-gh-release@v2
0 commit comments