Skip to content

Commit

Permalink
Merge pull request #122 from maelbecel/fix/Game-Sandbox
Browse files Browse the repository at this point in the history
fix (.github/): fix release
  • Loading branch information
EnzoGrn authored Jan 14, 2024
2 parents 03db8c5 + 9c4be14 commit 7b7c7af
Showing 1 changed file with 12 additions and 6 deletions.
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

0 comments on commit 7b7c7af

Please sign in to comment.