name: Build Release on: push: branches: [release] pull_request: branches: [release] jobs: export: name: Export (${{ matrix.platform }}) runs-on: ubuntu-24.04 container: image: barichello/godot-ci:4.3 strategy: matrix: include: - platform: windows export_name: "Windows" output: "windows/Experements.exe" # - platform: linux # export_name: "Linux/X11" # output: "linux/Experements.x86_64" # - platform: web # export_name: "Web" # output: "web/index.html" # - platform: mac # export_name: "macOS" # output: "mac/Experements.zip" steps: - name: Checkout uses: actions/checkout@v6 with: lfs: true - 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 run: | mkdir -v -p build/${{ matrix.platform }} EXPORT_DIR="$(readlink -f build)" cd $PROJECT_PATH godot --headless --verbose --export-release \ "${{ matrix.export_name }}" \ "$EXPORT_DIR/${{ matrix.output }}" - name: Upload builds uses: actions/upload-artifact@v5 with: name: ${{ matrix.platform }} path: build/${{ matrix.platform }} - name: Create Release uses: akkuman/gitea-release-action@v1 with: server_url: ${{ vars.SERVER_URL }} tag_name: ${{ steps.changelog.outputs.version }} name: "${{ steps.changelog.outputs.version }}" body: ${{ steps.changelog.outputs.body }} draft: false token: ${{ secrets.GITEA_TOKEN }}