Skip to content

Commit

Permalink
ci: Add Release
Browse files Browse the repository at this point in the history
  • Loading branch information
vasylskorych committed Mar 19, 2024
1 parent 37ce967 commit 77abc10
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -448,14 +448,12 @@ jobs:
echo "VERSION=$VERSION" >> $env:GITHUB_OUTPUT
- name: Rename Installer
working-directory: ${{github.workspace}}/DyssolInstallers/Installers/
shell: pwsh
run: Get-ChildItem -Path "." | Rename-Item -NewName "Dyssol.${{steps.get-version.outputs.VERSION}}.open.setup.exe"
run: Get-ChildItem -Path "${{github.workspace}}/DyssolInstallers/Installers/" | Rename-Item -NewName "${{github.workspace}}/Dyssol.${{steps.get-version.outputs.VERSION}}.open.setup.exe"

- name: Zip Portable Installer
working-directory: ${{github.workspace}}/DyssolInstallers/Installers/
shell: pwsh
run: Compress-Archive -Path 'C:/Program Files/Dyssol' -DestinationPath ${{github.workspace}}/DyssolInstallers/Installers/Dyssol.${{steps.get-version.outputs.VERSION}}.open.portable.zip
run: Compress-Archive -Path 'C:/Program Files/Dyssol' -DestinationPath ${{github.workspace}}/Dyssol.${{steps.get-version.outputs.VERSION}}.open.portable.zip

- name: Release
uses: softprops/action-gh-release@v2
Expand All @@ -464,8 +462,8 @@ jobs:
draft: 'true'
body_path: CHANGELOG
files: |
${{github.workspace}}/DyssolInstallers/Installers/Dyssol.${{steps.get-version.outputs.VERSION}}.open.setup.exe
${{github.workspace}}/DyssolInstallers/Installers/Dyssol.${{steps.get-version.outputs.VERSION}}.open.portable.zip
Dyssol.${{steps.get-version.outputs.VERSION}}.open.setup.exe
Dyssol.${{steps.get-version.outputs.VERSION}}.open.portable.zip
cleanup:
runs-on: windows-2019
Expand Down

0 comments on commit 77abc10

Please sign in to comment.