Skip to content

BUILD

BUILD #6

Workflow file for this run

name: BUILD
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
export:
name: Godot Export
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: install wine
id: wine_install
run: |
sudo apt install wine64
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: checkout
uses: actions/checkout@v3
- name: blender
run: |
wget https://mirrors.ocf.berkeley.edu/blender/release/Blender3.4/blender-3.4.1-linux-x64.tar.xz
tar xvf blender-*.tar.xz && mv -v $(ls -d */ | grep blender) $HOME/blender
echo "Blender is at: $(cd $HOME/blender && pwd)"
mkdir -pv ~/.config/godot
echo -e "[gd_resource type=\"EditorSettings\" format=3]\n\n[resource]\nfilesystem/import/blender/blender3_path = \"$HOME/blender\"" > ~/.config/godot/editor_settings-4.tres
cat ~/.config/godot/editor_settings-4.tres
- name: export
id: export
uses: firebelley/godot-export@v5.1.0
with:
# The download url of the Linux Headless Godot executable.
godot_executable_download_url: https://github.com/godotengine/godot/releases/download/4.0.4-stable/Godot_v4.0.4-stable_linux.x86_64.zip
# The url of the export templates corresponding to the Godot executable version.
godot_export_templates_download_url: https://github.com/godotengine/godot/releases/download/4.0.4-stable/Godot_v4.0.4-stable_export_templates.tpz
# The path relative to the root of the git repository that contains the "project.godot" file.
relative_project_path: ./
# If "true" Godot will export in debug mode.
export_debug: false
# Export project files as a .pck file.
export_as_pack: false
# Wine path, for Windows icon changing.
wine_path: ${{ steps.wine_install.outputs.WINE_PATH }}
# This release action has worked well for me. However, you can most likely use any release action of your choosing.
# https://github.com/ncipollo/release-action
- name: create release
uses: ncipollo/release-action@v1.12.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
generateReleaseNotes: true
tag: ${{ github.ref_name }}
artifacts: ${{ steps.export.outputs.build_directory }}/*/*.exe
allowUpdates: true
commit: main