on: [push] jobs: build: runs-on: ubuntu-latest container: image: barichello/godot-ci:4.6.2 steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Get build number run: echo "BUILD_NUM=$(git rev-list --count HEAD)" >> $GITHUB_ENV - name: Prepare build dir run: mkdir -p build - name: Build Windows run: godot --headless --export-release "Windows Desktop" build/spacel.exe - name: Build Linux run: godot --headless --export-release "Linux" build/spacel.x86_64 - name: Build Android run: godot --headless --export-release "Android" build/spacel.apk - name: Build Web run: godot --headless --export-release "Web" build/spacel.html - name: Create Release uses: actions/gitea-release@v1 with: token: ${{ secrets.GITEA_TOKEN }} tag_name: build-${{ env.BUILD_NUM }} release_name: Build ${{ env.BUILD_NUM }} files: | build/spacel.exe build/spacel.x86_64 build/spacel.apk build/spacel.html