Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix (.github/): fix release #122

Merged
merged 1 commit into from
Jan 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions .github/workflows/autorelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ jobs:
mkdir build && cd build && cmake .. -G Ninja && ninja && cd ..
- name: Check if the executable exists
run: |
if [ -f r-type_client ] && [ -f r-type_server ]; then exit 0; else exit 1; fi
if [ -f ./Release/r-type_client ] && [ -f ./Release/r-type_server ]; then exit 0; else exit 1; fi
shell: bash

- name: Upload binaries to release
uses: actions/upload-artifact@v2
with:
name: binaries
path: |
r-type_server
r-type_client
./Release/r-type_server
./Release/r-type_client

release:
needs: build
Expand Down Expand Up @@ -77,6 +77,12 @@ jobs:
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes && \
gh release upload "$tag" ./r-type_client && \
gh release upload "$tag" ./r-type_server
--generate-notes

if [ -f ./Release/r-type_client ] && [ -f ./Release/r-type_server ]; then
gh release upload "$tag" ./Release/r-type_client && \
gh release upload "$tag" ./Release/r-type_server;
else
gh release upload "$tag" ./r-type_client && \
gh release upload "$tag" ./r-type_server;
fi
Loading