From 1cb359bdb076706d5c15f081cf565ede3fb12769 Mon Sep 17 00:00:00 2001 From: Snoweuph Date: Tue, 4 Apr 2023 20:00:18 +0000 Subject: [PATCH] =?UTF-8?q?=E2=80=9E.gitea/workflows/build.yml=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build.yml | 54 +++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 30 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index e4d457d..1b5cb13 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -1,39 +1,33 @@ name: "godot-ci export" on: push -env: - GODOT_VERSION: 4.0.1 - EXPORT_NAME: snake - jobs: - - export-linux: - name: Linux Export - runs-on: ubuntu-20.04 - container: - image: barichello/godot-ci:4.0.1 + export_game: + runs-on: ubuntu-latest + name: Export Game Job steps: - - name: Setting Up Packages + - name: checkout + uses: actions/checkout@v3.3.0 + - name: install wine + id: wine_install run: | - apt update -y - apt upgrade -y - apt install -y nodejs ca-certificates - ls /root/.local/share/godot/templates/ - - name: Checkout - uses: https://github.com/actions/checkout@v2 + sudo apt install wine64 + echo "WINE_PATH=$(which wine64)" >> $GITHUB_OUTPUT + - name: export game + id: export + uses: https://github.com/firebelley/godot-export@v5.0.0 with: - lfs: true - - name: Setup - run: | - mkdir -v -p ~/.local/share/godot/templates - mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable - - name: Linux Build - run: | - mkdir -v -p build/linux - godot -v --export "Linux/X11" ../build/linux/$EXPORT_NAME.x86_64 - - name: Upload Artifact - uses: https://github.com/actions/upload-artifact@v1 + 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 + wine_path: ${{ steps.wine_install.outputs.WINE_PATH }} + - name: create release + uses: https://github.com/ncipollo/release-action@v1.11.2 with: - name: linux - path: build/linux + 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