mirror of
https://github.com/lightsoutgames/godot-tts
synced 2024-11-22 15:45:57 +00:00
Add release script.
This commit is contained in:
parent
251888de76
commit
4d883fc420
26
.github/workflows/release.yml
vendored
26
.github/workflows/release.yml
vendored
|
@ -2,9 +2,8 @@ name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
tags:
|
||||||
pull_request:
|
- 'v*'
|
||||||
branches: [ master ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
@ -59,7 +58,22 @@ jobs:
|
||||||
cp TTS.gd godot-tts.g* godot-tts
|
cp TTS.gd godot-tts.g* godot-tts
|
||||||
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
|
cp godot-tts.gdnlib.release godot-tts/godot-tts.gdnlib
|
||||||
rm godot-tts/*.release
|
rm godot-tts/*.release
|
||||||
- uses: actions/upload-artifact@v1
|
zip -r9 gotot-tts godot-tts
|
||||||
|
- uses: actions/create-release@v1
|
||||||
|
id: create_release
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
name: godot-tts
|
tag_name: ${{ github.ref }}
|
||||||
path: godot-tts
|
release_name: Release ${{ github.ref }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
- uses: actions/upload-release-asset@v1
|
||||||
|
id: upload-release-asset
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./godot-tts.zip
|
||||||
|
asset_name: godot-tts.zip
|
||||||
|
asset_content_type: application/zip
|
||||||
|
|
Loading…
Reference in New Issue
Block a user