Merge branch 'programming' into main #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: BUILD | |
on: | |
push: | |
tags: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
export: | |
name: Godot Export | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Wine | |
id: wine | |
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/[email protected] | |
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: Release | |
uses: ncipollo/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true | |
tag: ${{ github.ref_name }} | |
artifacts: ${{ steps.export.outputs.build_directory }}/*/*.exe | |
allowUpdates: true | |
commit: main | |