Snake/.gitea/workflows/build.yml

43 lines
1.8 KiB
YAML
Raw Normal View History

2023-04-02 20:44:55 +00:00
name: "godot-ci export"
on: push
jobs:
export_game:
runs-on: ubuntu-latest
name: Export Game Job
2023-04-02 20:44:55 +00:00
steps:
- name: checkout
uses: https://github.com/actions/checkout@v3.3.0
- name: install packages
id: wine_install
2023-04-02 20:48:07 +00:00
run: |
apt update -y && apt upgrade -y
apt install -y wine64 nodejs p7zip-full p7zip-rar
echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT
- name: download build libs
run: |
mkdir -p /root/.local/share/godot/
mkdir -p ~/build
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
- name: export game
id: export
uses: https://github.com/firebelley/godot-export@v5.0.0
timeout-minutes: 30
2023-04-02 20:44:55 +00:00
with:
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
archive_output: true
verbose: true
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:
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