diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 863e16aaf..b74ab410d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: # cross-platform coverage. # See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix runs-on: windows-latest + env: + PKGNAME: Olive-${GITHUB_SHA::8}-Windows-x86_64 steps: - uses: actions/checkout@v2 @@ -88,13 +90,18 @@ jobs: shell: cmd run: mkdir olive-editor && copy app\olive-editor.exe olive-editor && windeployqt olive-editor\olive-editor.exe && copy %GITHUB_WORKSPACE%\bin\*.dll olive-editor + - name: Deploy Installer + working-directory: ${{runner.workspace}}/build + shell: cmd + run: copy %GITHUB_WORKSPACE%\app\packaging\windows\nsis\* . && "C:/Program Files (x86)/NSIS/makensis.exe" -V4 -DX64 "-XOutFile %PKGNAME%.exe" olive.nsi + - name: Deploy Portable working-directory: ${{runner.workspace}}/build shell: cmd - run: type NUL > olive-editor\portable && 7z a Olive-Windows-x86_64.zip olive-editor + run: type NUL > olive-editor\portable && 7z a %PKGNAME%.zip olive-editor - name: Upload artifact uses: actions/upload-artifact@v2 with: - name: Olive-Windows-x86_64.zip - path: ${{runner.workspace}}/build/Olive-Windows-x86_64.zip + name: Windows (x86_64) + path: ${{runner.workspace}}/build/${PKGNAME}.*