on: release: types: [published] env: godot_version: 4.2.1 jobs: Auto-Build-App: runs-on: docker steps: - name: Install Packages run: | apt-get update apt-get install -y --no-install-recommends zip \ wget \ curl - name: Check out repository code uses: actions/checkout@v3 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - name: Download Godot run: | echo "Downloading Godot ${{ env.godot_version }}" wget https://github.com/godotengine/godot/releases/download/${{ env.godot_version }}-stable/Godot_v${{ env.godot_version }}-stable_linux.x86_64.zip unzip Godot_v${{ env.godot_version }}-stable_linux.x86_64.zip rm Godot_v${{ env.godot_version }}-stable_linux.x86_64.zip mv Godot_v${{ env.godot_version }}-stable_linux.x86_64 godot.x86_64 chmod +x godot.x86_64 - name: Run code run: godot.x86_64 -s upload_new_release.gd - run: echo "🖥️ The workflow is now ready to build code on the runner." - name: Build App run: | ./gradlew build ls ${{ gitea.workspace }} - name: List files in the repository run: | ls -lh ${{ gitea.workspace }} - name: Upload windows build uses: actions/upload-artifact@v3 with: name: BuildFiles path: | ./build/libs/*.jar !./build/libs/*-sources.jar - run: echo "🍏 This job's status is ${{ job.status }}."