Skip to content

Commit

Permalink
Fix Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicola02nb committed Feb 20, 2025
1 parent 23d8488 commit 1d94b3b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,16 @@ jobs:
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=${{matrix.platform}} ${{env.SOLUTION_FILE_PATH}}

- name: Rename Exe with Version and Architecture
run: |
$exe = Get-ChildItem -Path ${{ matrix.platform }}/Release/*.exe
$exe | Rename-Item -NewName { $_.Name -replace 'BetterDiscordAutoUpdate.exe', "BetterDiscordAutoUpdate-${{ inputs.version }}_${{ matrix.platform }}.exe" }
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: BetterDiscordAutoUpdate-${{ inputs.version }}_${{ matrix.architecture }}
path: ${{ matrix.architecture }}/Release/BetterDiscordAutoUpdate-${{ inputs.version }}_${{ matrix.architecture }}.exe
name: BetterDiscordAutoUpdate-${{ inputs.version }}_${{ matrix.platform }}
path: ${{ matrix.platform }}/Release/BetterDiscordAutoUpdate-${{ inputs.version }}_${{ matrix.platform }}.exe

create-release:
needs: [build]
Expand Down

0 comments on commit 1d94b3b

Please sign in to comment.