mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-28 15:31:30 +12:00
Update build.yml
This commit is contained in:
parent
06e9cf9b78
commit
85068023db
1 changed files with 4 additions and 2 deletions
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
|
@ -28,6 +28,7 @@ jobs:
|
|||
|
||||
env:
|
||||
SOLUTION_FILE_PATH: .\ShareX.sln
|
||||
ASSEMBLY_INFO_PATH: SharedAssemblyInfo.cs
|
||||
|
||||
outputs:
|
||||
APP_VERSION: ${{ steps.get_app_version.outputs.APP_VERSION }}
|
||||
|
@ -39,10 +40,11 @@ jobs:
|
|||
- name: Add msbuild to PATH
|
||||
uses: microsoft/setup-msbuild@v1.1
|
||||
|
||||
- name: Create APP_VERSION env variable
|
||||
- name: Get app version
|
||||
id: get_app_version
|
||||
if: matrix.configuration == 'Release'
|
||||
run: |
|
||||
$content = Get-Content "SharedAssemblyInfo.cs"
|
||||
$content = Get-Content "${{ env.ASSEMBLY_INFO_PATH }}"
|
||||
$match = [regex]::Match($content, 'AssemblyVersion\("(.+?)"\)')
|
||||
$version = $match.Groups[1].Value
|
||||
echo $version
|
||||
|
|
Loading…
Reference in a new issue