Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex0vSky authored Sep 12, 2023
1 parent 4d308c6 commit 957e56f
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ jobs:
run: |
$dirLib="${{ github.workspace }}\lib";
echo "dirLib=$dirLib" >> $env:GITHUB_ENV
$dirLib_x86_Debug="${{ github.workspace }}\lib\x86\Debug";
$dirLib_x86_Release="${{ github.workspace }}\lib\x86\Release";
$dirLib_x64_Debug="${{ github.workspace }}\lib\x64\Debug";
$dirLib_x64_Release="${{ github.workspace }}\lib\x64\Release";
echo "dirLib_x86_Debug=$dirLib_x86_Debug" >> $env:GITHUB_ENV
echo "dirLib_x86_Release=$dirLib_x86_Release" >> $env:GITHUB_ENV
echo "dirLib_x64_Debug=$dirLib_x64_Debug" >> $env:GITHUB_ENV
echo "dirLib_x64_Release=$dirLib_x64_Release" >> $env:GITHUB_ENV
$uriVersion='gist.githubusercontent.com/${{ github.repository_owner }}/${{ env.uriGistId }}/raw'
echo "uriVersion=$uriVersion" >> $env:GITHUB_ENV
Expand Down Expand Up @@ -71,14 +63,14 @@ jobs:
with:
name: ${{ env.release_artifact_name }}
path: |
${{ env.dirLib }}\**.${{ env.strOutExt }}
${{ env.dirLib }}\**\*.${{ env.strOutExt }}
- name: Renaming to versioning names
run: |
mv -v ${{ env.dirLib_x86_Debug }}\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x86.${{ env.strOutExt }}
mv -v ${{ env.dirLib_x86_Release }}\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x86.${{ env.strOutExt }}
mv -v ${{ env.dirLib_x64_Debug }}\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x64.${{ env.strOutExt }}
mv -v ${{ env.dirLib_x64_Release }}\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x64.${{ env.strOutExt }}
mv -v ${{ github.workspace }}\lib\x86\Debug\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x86-Debug.${{ env.strOutExt }}
mv -v ${{ github.workspace }}\lib\x86\Release\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x86-Release.${{ env.strOutExt }}
mv -v ${{ github.workspace }}\lib\x64\Debug\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x64-Debug.${{ env.strOutExt }}
mv -v ${{ github.workspace }}\lib\x64\Release\${{ env.strOutName }}.${{ env.strOutExt }} ${{ runner.temp }}\${{ env.strOutName }}-${{ env.strTag }}-x64-Release.${{ env.strOutExt }}
- name: Replace '\\' for softprops/action-gh-release
run: |
Expand Down

0 comments on commit 957e56f

Please sign in to comment.