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 c82d1c0 commit 0b298b7
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- name: Build the project
run: msbuild BK7231Flasher/BK7231Flasher.csproj /p:Configuration=Release /p:OutDir=BuildOutput\Release\

- name: Debug Build Output
run: |
echo "Checking output directory..."
dir BuildOutput
dir BuildOutput\Release
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
Expand All @@ -41,6 +47,11 @@ jobs:
BK7231Flasher/BuildOutput/Release/*.dll
if-no-files-found: warn

- name: Debug Build Output Directory
run: |
echo "Contents of BuildOutput/Release:"
dir BK7231Flasher/BuildOutput/Release
release:
needs: build
runs-on: windows-latest
Expand All @@ -61,22 +72,24 @@ jobs:
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-v${{ github.run_number }}.zip"
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18

- name: Run Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/github
debug: true
tag_name: v${{ github.run_number }}
name: BK7231GUIFlashTool v${{ github.run_number }}
body: |
Automated release for BK7231GUIFlashTool.
Includes the latest .exe and .dll files.
draft: false
prerelease: false
files: release/BK7231GUIFlashTool-v${{ github.run_number }}.zip

0 comments on commit 0b298b7

Please sign in to comment.