Skip to content

Commit

Permalink
Merge branch 'target/macos'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nereuxofficial committed Dec 28, 2022
2 parents 4440d8d + 5abcdd1 commit 4076295
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
release:
strategy:
matrix:
os: [ windows-2019, ubuntu-latest ]
os: [ windows-2019, ubuntu-latest, macos-latest ]
toolchain: [ nightly ]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -41,8 +41,8 @@ jobs:
if : ${{ runner.os == 'Linux' }}
run: strip target/release/game

- name: Copy binary Linux
if: ${{ runner.os == 'Linux' }}
- name: Copy binary Linux/MacOS
if: ${{ runner.os == 'Linux' || runner.os == 'macOS' }}
run: cp target/release/game redlife

- name: Copy binary Windows
Expand All @@ -65,11 +65,20 @@ jobs:
recursive: false
dest: game_linux.zip

- name: Zip Release MacOS
if: ${{ runner.os == 'MacOS' }}
uses: vimtor/action-zip@v1
with:
files: assets redlife
recursive: false
dest: game_mac.zip

- name: Upload Release
uses: softprops/action-gh-release@v1
with:
files: |
game_windows.zip
game_linux.zip
game_mac.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4076295

Please sign in to comment.