Skip to content

Commit

Permalink
Modified windows workflow to upload all build assets
Browse files Browse the repository at this point in the history
This should upload the static assets as well as the dynamic assets.
  • Loading branch information
gentlegiantJGC committed Aug 23, 2022
1 parent 7e9385b commit 8a2a89b
Showing 1 changed file with 24 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
cd build_leveldb
cmake -DZLIB_INCLUDE_DIR="..\zlib" -DZLIB_LIBRARY="..\zlib\Release\zlibstatic.lib" -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -G "Visual Studio 16 2019" -A Win32 -T v140 ..\leveldb-mcpe
cmake --build . --config Release
7z leveldb_mcpe_win32.zip Release
cd ..
- name: Upload Release Asset
id: upload-release-asset
- name: Upload DLL
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -46,6 +46,16 @@ jobs:
asset_path: ./build_leveldb/Release/leveldb.dll
asset_name: leveldb_mcpe_win32.dll
asset_content_type: dll

- name: Upload Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build_leveldb/leveldb_mcpe_win32.zip
asset_name: leveldb_mcpe_win32.zip
asset_content_type: application/zip

deploy-win64:
runs-on: windows-latest
Expand Down Expand Up @@ -76,10 +86,10 @@ jobs:
cd build_leveldb
cmake -DZLIB_INCLUDE_DIR="..\zlib" -DZLIB_LIBRARY="..\zlib\Release\zlibstatic.lib" -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE -G "Visual Studio 16 2019" -A x64 -T v140 ..\leveldb-mcpe
cmake --build . --config Release
7z leveldb_mcpe_win_amd64.zip Release
cd ..
- name: Upload Release Asset
id: upload-release-asset
- name: Upload DLL
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -88,3 +98,13 @@ jobs:
asset_path: ./build_leveldb/Release/leveldb.dll
asset_name: leveldb_mcpe_win_amd64.dll
asset_content_type: dll

- name: Upload Archive
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./build_leveldb/leveldb_mcpe_win_amd64.zip
asset_name: leveldb_mcpe_win_amd64.zip
asset_content_type: application/zip

0 comments on commit 8a2a89b

Please sign in to comment.