parent
ff0ccb9975
commit
de347c7147
1 changed files with 15 additions and 0 deletions
|
@ -31,6 +31,14 @@ jobs:
|
||||||
mkdir -p /root/.local/share/godot/export_templates
|
mkdir -p /root/.local/share/godot/export_templates
|
||||||
mv /root/.local/share/godot/4.0.2.stable /root/.local/share/godot/export_templates
|
mv /root/.local/share/godot/4.0.2.stable /root/.local/share/godot/export_templates
|
||||||
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 --version
|
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 --version
|
||||||
|
- name: Export for Web
|
||||||
|
run: |
|
||||||
|
mkdir -p ./builds/web/
|
||||||
|
/root/.local/share/godot/godot_executable/Godot_v4.0.2-stable_linux.x86_64 /var/lib/actions/project.godot -q --headless --export-release "Web" ./builds/linux/Game.html
|
||||||
|
- name: Package for Web
|
||||||
|
run: |
|
||||||
|
cd builds
|
||||||
|
tar -czvf web.zip -C web/ .
|
||||||
- name: Export for Linux
|
- name: Export for Linux
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ./builds/linux/
|
mkdir -p ./builds/linux/
|
||||||
|
@ -68,6 +76,13 @@ jobs:
|
||||||
\"tag_name\": \"$VERSION\"
|
\"tag_name\": \"$VERSION\"
|
||||||
}")
|
}")
|
||||||
ID=$(echo $ID | jq -r '.id')
|
ID=$(echo $ID | jq -r '.id')
|
||||||
|
echo $ID Upload Web
|
||||||
|
curl -X 'POST' \
|
||||||
|
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Web.zip" \
|
||||||
|
-H 'accept: application/json' \
|
||||||
|
-H 'Content-Type: multipart/form-data' \
|
||||||
|
-H 'Authorization: token ${{ secrets.RELEASE_TOKEN }}' \
|
||||||
|
-F 'attachment=@./web/web.zip;type=application/gzip'
|
||||||
echo $ID Upload Linux
|
echo $ID Upload Linux
|
||||||
curl -X 'POST' \
|
curl -X 'POST' \
|
||||||
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Linux.tar.gz" \
|
"https://git.euph.dev/api/v1/repos/${{ github.repository }}/releases/$ID/assets?name=Linux.tar.gz" \
|
||||||
|
|
Reference in a new issue