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 05:17:25 +00:00
|
|
|
apt install -y wine64 nodejs p7zip-full ca-certificates
|
2023-04-04 20:00:18 +00:00
|
|
|
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
|
|
|
|
- name: export game
|
|
|
|
id: export
|
|
|
|
uses: https://github.com/firebelley/godot-export@v5.0.0
|
2023-04-04 20:11:39 +00:00
|
|
|
timeout-minutes: 30
|
2023-04-02 20:44:55 +00:00
|
|
|
with:
|
2023-04-04 20:00:18 +00:00
|
|
|
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip
|
|
|
|
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_export_templates.tpz
|
|
|
|
relative_project_path: ./
|
2023-04-05 07:14:19 +00:00
|
|
|
use_preset_export_path: false
|
2023-04-04 20:00:18 +00:00
|
|
|
relative_export_path: ./build # move export output to this directory relative to git root
|
2023-04-05 07:14:19 +00:00
|
|
|
archive_output: false
|
|
|
|
verbose: false
|
2023-04-04 20:00:18 +00:00
|
|
|
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
|
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-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
|
|
|
|