Update release build to include MacOS, and to package README.md.

This commit is contained in:
Nolan Darilek 2020-08-14 08:37:11 -05:00
parent 8dfa941ba6
commit 6fd18b0de1

View File

@ -3,10 +3,9 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"
jobs:
build_linux:
name: Build Linux
runs-on: ubuntu-latest
@ -36,10 +35,23 @@ jobs:
name: windows
path: windows
build_macos:
name: Build MacOS
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- run: |
cargo build --release
mv target macos
- uses: actions/upload-artifact@v1
with:
name: macos
path: macos
package:
name: Package
runs-on: ubuntu-latest
needs: [build_linux, build_windows]
needs: [build_linux, build_windows, build_macos]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v1
@ -48,13 +60,18 @@ jobs:
- uses: actions/download-artifact@v1
with:
name: windows
- uses: actions/download-artifact@v1
with:
name: macos
- run: |
mkdir godot-tts
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
mkdir -p godot-tts/target/release
cp linux/release/*.so godot-tts/target/release
cp windows/release/*.dll godot-tts/target/release
cp macos/release/*.dylib godot-tts/target/release
cp LICENSE godot-tts
cp README.md godot-tts
cp TTS.gd godot-tts.g* godot-tts
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
rm godot-tts/*.release