mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-01 04:30:49 +12:00
Update build.yml
This commit is contained in:
parent
2b71c72ad7
commit
5fed5ec6a6
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- name: Add msbuild to PATH
|
- name: Add msbuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v1.1
|
uses: microsoft/setup-msbuild@v1.1
|
||||||
|
|
||||||
- name: Get app version
|
- name: Set 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})"\)'
|
||||||
|
@ -81,42 +81,42 @@ jobs:
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Setup
|
name: Setup
|
||||||
path: Output\ShareX-*-setup.exe
|
path: Output\ShareX-${{ env.APP_VERSION }}-setup.exe
|
||||||
|
|
||||||
- name: Upload artifact (Portable)
|
- name: Upload artifact (Portable)
|
||||||
if: matrix.configuration == 'Release'
|
if: matrix.configuration == 'Release'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Portable
|
name: Portable
|
||||||
path: Output\ShareX-*-portable.zip
|
path: Output\ShareX-${{ env.APP_VERSION }}-portable.zip
|
||||||
|
|
||||||
- name: Upload artifact (Debug)
|
- name: Upload artifact (Debug)
|
||||||
if: matrix.configuration == 'Debug'
|
if: matrix.configuration == 'Debug'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Debug
|
name: Debug
|
||||||
path: Output\ShareX-*-debug.zip
|
path: Output\ShareX-${{ env.APP_VERSION }}-debug.zip
|
||||||
|
|
||||||
- name: Upload artifact (Steam)
|
- name: Upload artifact (Steam)
|
||||||
if: matrix.configuration == 'Steam'
|
if: matrix.configuration == 'Steam'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: Steam
|
name: Steam
|
||||||
path: Output\ShareX-*-Steam.zip
|
path: Output\ShareX-${{ env.APP_VERSION }}-Steam.zip
|
||||||
|
|
||||||
- name: Upload artifact (MicrosoftStore)
|
- name: Upload artifact (MicrosoftStore)
|
||||||
if: matrix.configuration == 'MicrosoftStore'
|
if: matrix.configuration == 'MicrosoftStore'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: MicrosoftStore
|
name: MicrosoftStore
|
||||||
path: Output\ShareX-*.appx
|
path: Output\ShareX-${{ env.APP_VERSION }}.appx
|
||||||
|
|
||||||
- name: Upload artifact (MicrosoftStoreDebug)
|
- name: Upload artifact (MicrosoftStoreDebug)
|
||||||
if: matrix.configuration == 'MicrosoftStoreDebug'
|
if: matrix.configuration == 'MicrosoftStoreDebug'
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: MicrosoftStoreDebug
|
name: MicrosoftStoreDebug
|
||||||
path: Output\ShareX-*-debug.appx
|
path: Output\ShareX-${{ env.APP_VERSION }}-debug.appx
|
||||||
|
|
||||||
release:
|
release:
|
||||||
name: Release
|
name: Release
|
||||||
|
|
Loading…
Reference in a new issue