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-04 20:00:18 +00:00
|
|
|
- name: install wine
|
|
|
|
id: wine_install
|
2023-04-02 20:48:07 +00:00
|
|
|
run: |
|
2023-04-04 20:03:15 +00:00
|
|
|
apt update -y
|
2023-04-05 05:01:10 +00:00
|
|
|
apt install -y wine64 nodejs
|
2023-04-04 20:00:18 +00:00
|
|
|
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
|
2023-04-05 04:53:59 +00:00
|
|
|
- name: download lib
|
|
|
|
run: |
|
2023-04-05 04:55:43 +00:00
|
|
|
mkdir -p /root/.local/share/godot/
|
2023-04-05 04:53:59 +00:00
|
|
|
wget -nv https://downloads.tuxfamily.org/godotengine/4.0/Godot_v4.0-stable_linux.x86_64.zip -O /root/.local/share/godot/godot.zip
|
|
|
|
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-04 20:00:18 +00:00
|
|
|
- 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: ./
|
|
|
|
relative_export_path: ./build # move export output to this directory relative to git root
|
2023-04-04 20:07:13 +00:00
|
|
|
archive_output: true
|
|
|
|
verbose: true
|
2023-04-04 20:00:18 +00:00
|
|
|
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
|
|
|
|
- name: create release
|
|
|
|
uses: https://github.com/ncipollo/release-action@v1.11.2
|
2023-04-02 20:44:55 +00:00
|
|
|
with:
|
2023-04-04 20:00:18 +00:00
|
|
|
token: ${{ secrets.DEPLOY_TOKEN }}
|
|
|
|
generateReleaseNotes: true
|
|
|
|
tag: ${{ github.ref_name }}
|
|
|
|
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
|
|
|
|