Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
DeDaMrAzR authored Dec 20, 2024
1 parent a73f614 commit f42dd3c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ jobs:
echo "Checking output directory..."
dir BuildOutput
dir BuildOutput\Release
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: BK7231GUIFlashTool
name: BuildOutput
path: |
BK7231Flasher/BuildOutput/Release/*.exe
BK7231Flasher/BuildOutput/Release/*.dll
Expand All @@ -51,7 +50,6 @@ jobs:
run: |
echo "Contents of BuildOutput/Release:"
dir BK7231Flasher/BuildOutput/Release
release:
needs: build
runs-on: windows-latest
Expand All @@ -63,25 +61,22 @@ jobs:
- name: Download Build Artifacts
uses: actions/download-artifact@v3
with:
name: BK7231GUIFlashTool
name: BuildOutput

- name: Recreate Directory Structure
run: |
echo "Recreating BuildOutput directory..."
mkdir -p BuildOutput/Release
move *.exe BuildOutput/Release/
move *.dll BuildOutput/Release/
- name: Debug Downloaded Artifacts
run: |
echo "Downloaded artifacts in BuildOutput/Release:"
dir BuildOutput/Release
- name: Create ZIP File
run: |
mkdir release
powershell Compress-Archive -Path "BuildOutput\Release\*" -DestinationPath "release\BK7231GUIFlashTool.zip"
powershell Compress-Archive -Path "BuildOutput\Release\*" -DestinationPath "release/BK7231GUIFlashTool-v${{ github.run_number }}.zip"
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -102,6 +97,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: "release/BK7231GUIFlashTool.zip"
asset_name: "BK7231GUIFlashTool.zip"
asset_path: "release/BK7231GUIFlashTool-v${{ github.run_number }}.zip"
asset_name: "BK7231GUIFlashTool-v${{ github.run_number }}.zip"
asset_content_type: application/zip

0 comments on commit f42dd3c

Please sign in to comment.