-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed release upload and Windows build
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,19 +18,19 @@ jobs: | |
- name: Build linux release | ||
run: cmake -B . && make | ||
- name: Build windows release | ||
run: cmake -DCMAKE_TOOLCHAIN_FILE="tc-win64.cmake" -B . && make | ||
run: rm -rf CMakeFiles ; rm -rf */CMakeFiles ; rm -rf */*/CMakeFiles && cmake -DCMAKE_TOOLCHAIN_FILE="tc-win64.cmake" -B . && make | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Generate release | ||
run: | | ||
cd release | ||
zip ziso_${{ env.RELEASE_VERSION }}_linux.zip bin/ziso | ||
zip ziso_${{ env.RELEASE_VERSION }}_win64.zip bin/ziso.exe | ||
cd bin | ||
zip ziso_${{ env.RELEASE_VERSION }}_linux.zip ziso | ||
zip ziso_${{ env.RELEASE_VERSION }}_win64.zip ziso.exe | ||
- name: Upload assets | ||
uses: marvinpinto/[email protected] | ||
with: | ||
repo_token: "${{ secrets.GITHUB_TOKEN }}" | ||
prerelease: false | ||
files: | | ||
release/*.zip | ||
bin/*.zip |