name: itch.io publish action run-name: ${{ gitea.actor }} is publishing ${{ gitea.repository }} ${{ gitea.ref }} to itch.io. on: push: branches: - ci-test tags: - v* jobs: build: runs-on: ubuntu-latest env: NAME: gfolf 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: Godot Setup uses: lihop/setup-godot@v2 with: version: "4.3-stable" export-templates: true - name: Build project run: | BUILD_DIR="build/$NAME"_${{ matrix.target }} ZIP_NAME="$NAME"_${{ gitea.ref }}_${{ matrix.target }}.7z mkdir -p $BUILD_DIR godot --headless --export-debug ${{ matrix.target }} $BUILD_DIR/$NAME.${{ matrix.ext }} - name: Upload artifact uses: actions/upload-artifact@v4 with: name: Debug Build - ${{ matrix.platform }} path: ${{ gitea.workspace }}/build/"$NAME"_${{ matrix.target }}