mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-30 20:20:34 +12:00
Update build.yml
This commit is contained in:
parent
5381cb685e
commit
2b71c72ad7
5
.github/workflows/build.yml
vendored
5
.github/workflows/build.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
||||||
ASSEMBLY_INFO_PATH: GlobalAssemblyInfo.cs
|
ASSEMBLY_INFO_PATH: GlobalAssemblyInfo.cs
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
APP_VERSION: ${{ steps.get_app_version.outputs.APP_VERSION }}
|
APP_VERSION: ${{ env.APP_VERSION }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -42,7 +42,6 @@ jobs:
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
|
||||||
- name: Get app version
|
- name: Get app version
|
||||||
id: get_app_version
|
|
||||||
run: |
|
run: |
|
||||||
$content = Get-Content "${{ env.ASSEMBLY_INFO_PATH }}" -Raw
|
$content = Get-Content "${{ env.ASSEMBLY_INFO_PATH }}" -Raw
|
||||||
$pattern = 'Version\("([0-9]+(?:\.[0-9]+){1,3})"\)'
|
$pattern = 'Version\("([0-9]+(?:\.[0-9]+){1,3})"\)'
|
||||||
|
@ -54,7 +53,7 @@ jobs:
|
||||||
Set-Content -Path "${{ env.ASSEMBLY_INFO_PATH }}" -Value "$content" -NoNewline
|
Set-Content -Path "${{ env.ASSEMBLY_INFO_PATH }}" -Value "$content" -NoNewline
|
||||||
}
|
}
|
||||||
echo $version
|
echo $version
|
||||||
echo "APP_VERSION=$version" >> $env:GITHUB_OUTPUT
|
echo "APP_VERSION=$version" >> $env:GITHUB_ENV
|
||||||
|
|
||||||
- name: Download API keys
|
- name: Download API keys
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue