2023-04-02 20:44:55 +00:00
|
|
|
name: "godot-ci export"
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
2023-04-04 20:00:18 +00:00
|
|
|
export_game:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Export Game Job
|
2023-04-02 20:44:55 +00:00
|
|
|
steps:
|
2023-04-04 20:00:18 +00:00
|
|
|
- name: checkout
|
2023-04-04 20:01:35 +00:00
|
|
|
uses: https://github.com/actions/checkout@v3.3.0
|
2023-04-05 05:04:56 +00:00
|
|
|
- name: install packages
|
2023-04-04 20:00:18 +00:00
|
|
|
id: wine_install
|
2023-04-02 20:48:07 +00:00
|
|
|
run: |
|
2023-04-05 05:10:20 +00:00
|
|
|
apt update -y && apt upgrade -y
|
2023-04-05 07:17:44 +00:00
|
|
|
apt install -y wine64 nodejs p7zip-full ca-certificates tree
|
2023-04-04 20:00:18 +00:00
|
|
|
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
|
2023-04-05 07:32:44 +00:00
|
|
|
- name: download godot build libs
|
2023-04-05 07:30:50 +00:00
|
|
|
run: |
|
2023-04-05 07:36:34 +00:00
|
|
|
mkdir -p /root/.local/share/godot/
|
|
|
|
wget -nv https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip -O "/root/.local/share/godot/godot.zip"
|
2023-04-05 07:30:50 +00:00
|
|
|
wget -nv https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz -O /root/.local/share/godot/godot_templates.tpz
|
2023-04-05 07:32:44 +00:00
|
|
|
- name: setup godot build libs
|
|
|
|
run: |
|
2023-04-05 07:30:50 +00:00
|
|
|
7z x /root/.local/share/godot/godot.zip -o/root/.local/share/godot/godot_executable -y
|
|
|
|
chmod +x /root/.local/share/godot/godot_executable/Godot_v4.0-stable_linux.x86_64
|
|
|
|
unzip /root/.local/share/godot/godot_templates.tpz -d /root/.local/share/godot
|
|
|
|
mv /root/.local/share/godot/templates /root/.local/share/godot/4.0.stable
|
2023-04-05 08:44:26 +00:00
|
|
|
mkdir -p /root/.local/share/godot/export_templates
|
2023-04-05 07:30:50 +00:00
|
|
|
mv /root/.local/share/godot/4.0.stable /root/.local/share/godot/export_templates
|
2023-04-05 07:42:28 +00:00
|
|
|
echo "---"
|
2023-04-05 07:30:50 +00:00
|
|
|
/root/.local/share/godot/godot_executable/Godot_v4.0-stable_linux.x86_64 --version
|
2023-04-05 07:42:28 +00:00
|
|
|
echo "---"
|
2023-04-05 08:37:46 +00:00
|
|
|
ls /root/.local/share/godot/
|
2023-04-05 07:30:50 +00:00
|
|
|
- name: setup Build Folders
|
|
|
|
run: mkdir -p ./builds/linux
|
|
|
|
- name: export for linux
|
|
|
|
run: /root/.local/share/godot/godot_executable/Godot_v4.0-stable_linux.x86_64 /var/lib/actions/project.godot --headless --export-release Linux/X11 ./builds/linux
|
2023-04-05 06:57:22 +00:00
|
|
|
- name: print info
|
|
|
|
run: |
|
|
|
|
ls
|
2023-04-05 07:04:18 +00:00
|
|
|
du -sh *
|
2023-04-05 07:14:19 +00:00
|
|
|
echo "---"
|
|
|
|
tree /root/.local/share/godot/
|
2023-04-05 07:21:28 +00:00
|
|
|
echo "---"
|
|
|
|
tree builds
|
2023-04-04 20:00:18 +00:00
|
|
|
- name: create release
|
2023-04-05 06:57:22 +00:00
|
|
|
uses: https://github.com/ncipollo/release-action@v1
|
2023-04-02 20:44:55 +00:00
|
|
|
with:
|
2023-04-04 20:00:18 +00:00
|
|
|
token: ${{ secrets.DEPLOY_TOKEN }}
|
2023-04-05 06:57:22 +00:00
|
|
|
tag: ${{ github.ref_name }} Test
|
|
|
|
name: Test
|
2023-04-04 20:00:18 +00:00
|
|
|
artifacts: ${{ steps.export.outputs.archive_directory }}/* # Added "/*" at the end is glob pattern match for this action
|
2023-04-02 20:44:55 +00:00
|
|
|
|