# Based on https://github.com/aBARICHELLO/godot-ci/blob/master/.github/workflows/godot-ci.yml name: GFOLF - itch.io publish action run-name: ${{ gitea.actor }} is publishing GFOLF ${{ gitea.ref }} to itch.io. on: push: branches: - ci-test tags: - v* env: GODOT_VERSION: 4.3 EXPORT_NAME: gfolf PROJECT_PATH: . jobs: build: runs-on: ubuntu-20.04 container: image: barichello/godot-ci:4.3 strategy: matrix: include: - target: linux64 ext: x86_64 - target: osx ext: app - target: win64 ext: exe steps: - name: Checkout repository run: | git init git remote add origin ${{ gitea.event.repository.clone_url }} git fetch --depth 1 origin ${{ gitea.ref }} git checkout FETCH_HEAD git lfs pull - name: Setup run: | mkdir -v -p ~/.local/share/godot/export_templates/ mkdir -v -p ~/.config/ mv /root/.config/godot ~/.config/godot mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable - name: Build project run: | OUT_DIR=gfolf_${{ matrix.target }} BUILD_DIR=build/$OUT_DIR ZIP_NAME=gfolf_${{ gitea.ref }}_${{ matrix.target }}.7z mkdir -p $BUILD_DIR godot --headless --export-debug ${{ matrix.target }} $BUILD_DIR/gfolf.${{ matrix.ext }} (cd build && 7z a $ZIP_NAME $OUT_DIR) - name: Upload artifact uses: actions/upload-artifact@v4 with: name: Debug Build - ${{ matrix.platform }} path: ${{ gitea.workspace }}/build/gfolf_${{ matrix.target }} - name: Publish run: butler push "build/$ZIP_NAME" tetramorph/gfolf:${{ matrix.target }}