Create export.yaml
parent
14a9b7b972
commit
dee93c0437
@ -0,0 +1,39 @@
|
|||||||
|
name: Build and Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Export to Asset-lib
|
||||||
|
runs-on: macos-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- uses: chickensoft-games/setup-godot@v1
|
||||||
|
name: 🤖 Setup Godot
|
||||||
|
with:
|
||||||
|
version: ${{vars.GODOT_VERSION}}
|
||||||
|
use-dotnet: false
|
||||||
|
include-templates: false
|
||||||
|
|
||||||
|
- name: import project
|
||||||
|
run: godot --headless -e --quit-after 100
|
||||||
|
- name: Zip up Folder
|
||||||
|
run: zip -r build.zip . -x "*.git*" -x "*.github*" -x "*.vscode*" -x ".godot/editor/*" -x "build.zip"
|
||||||
|
|
||||||
|
- name: Upload Zip
|
||||||
|
run: |
|
||||||
|
RESPONSE=$(curl --data-binary "@build.zip" \
|
||||||
|
"${{secrets.uploadUrl}}?godot_id=${{env.GODOT_ASSET_ID}}&xodot_id=${{env.XODOT_ASSET_ID}}&version=${{ github.ref_name }}" \
|
||||||
|
-H "apiKey: ${{secrets.apiKey}}")
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "SUCCESS"
|
||||||
|
else
|
||||||
|
echo "FAILURE"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
Loading…
Reference in New Issue