Update build.yml

This commit is contained in:
Jaex 2023-01-19 01:48:19 +03:00
parent 2b71c72ad7
commit 5fed5ec6a6

View file

@ -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