Skip to content

Commit

Permalink
[gha] debug gh again and again
Browse files Browse the repository at this point in the history
  • Loading branch information
oxy86 committed Dec 4, 2024
1 parent 42f50d1 commit f7465bc
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@ jobs:
run: |
echo "🔍 Verifying artifact: ${{ env.LINUX_ARTIFACT }}"
pwd
ls
ls build
if [ ! -f "./build/${{ env.LINUX_ARTIFACT }}" ]; then
echo "❌ Error: Artifact not found!"
exit 1
fi
echo "📤 Uploading artifact to GitHub release..."
gh release upload continuous "./build/${{ env.LINUX_ARTIFACT }}" --repo "${{ github.repository }}" \
--clobber --title "${{ env.APP_NAME }} ${env.VERSION}" --content-type application/octet-stream
--clobber --title "${{ env.APP_NAME }} ${{env.VERSION}}" --content-type application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Check failure on line 325 in .github/workflows/build-ci.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

325:52 [trailing-spaces] trailing spaces

Expand Down Expand Up @@ -507,15 +507,15 @@ jobs:
run: |
echo "🔍 Verifying artifact: ${{ env.MAC_ARTIFACT }}"
pwd
ls
ls build
if [ ! -f "./build/${{ env.MAC_ARTIFACT }}" ]; then
echo "❌ Error: Artifact not found!"
exit 1
fi
echo "📤 Uploading artifact to GitHub release..."
gh release upload continuous "./build/${{ env.MAC_ARTIFACT }}" --repo "${{ github.repository }}" \
--clobber --title "${{ env.APP_NAME }} ${env.VERSION}" --content-type application/octet-stream
--clobber --title "${{ env.APP_NAME }} ${{env.VERSION}}" --content-type application/octet-stream
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down Expand Up @@ -587,10 +587,11 @@ jobs:

echo "Updating RELEASEFOLDER in innosetup.iss with ${{env.CMAKE_CONFIG}}..."
$config = "${{env.CMAKE_CONFIG}}"
(Get-Content innosetup.iss) -replace '#define RELEASEFOLDER "release\\\\"', "#define RELEASEFOLDER \"$config\\\"" | Set-Content innosetup.iss
$replacement = "#define RELEASEFOLDER `"$config\\`""
(Get-Content innosetup.iss) -replace '#define RELEASEFOLDER "release\\\\"', $replacement | Set-Content innosetup.iss
echo "Updated innosetup.iss:"
type build\innosetup.iss
type innosetup.iss

Check failure on line 594 in .github/workflows/build-ci.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

594:1 [trailing-spaces] trailing spaces
echo "🔧 Running Inno Setup to create installer..."
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" "build\innosetup.iss"

Expand Down

0 comments on commit f7465bc

Please sign in to comment.