Fix workflow #5
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Release (Debug APK) | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build Debug APK | |
| run: ./gradlew assembleDebug | |
| - name: Get version from tag | |
| id: version | |
| run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT | |
| - name: Rename APK | |
| run: | | |
| VERSION=${{ steps.version.outputs.VERSION }} | |
| mv app/build/outputs/apk/debug/app-debug.apk PSPLinuxController-${VERSION}.apk | |
| - name: Package Server | |
| run: | | |
| VERSION=${{ steps.version.outputs.VERSION }} | |
| cd server | |
| tar -czvf ../PSPLinuxController-Server-${VERSION}.tar.gz \ | |
| psp_controller_server.py \ | |
| layout_editor_gui.py \ | |
| requirements.txt \ | |
| start_server.sh | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: PSP Linux Controller v${{ steps.version.outputs.VERSION }} | |
| make_latest: true | |
| body: | | |
| ## PSP Linux Controller v${{ steps.version.outputs.VERSION }} | |
| Use your Android phone as a wireless controller for PPSSPP on Linux. | |
| ### Downloads | |
| - **PSPLinuxController-${{ steps.version.outputs.VERSION }}.apk** - Android app (debug build) | |
| - **PSPLinuxController-Server-${{ steps.version.outputs.VERSION }}.tar.gz** - Linux server + layout editor | |
| ### Quick Start | |
| 1. Extract the server tarball and run `python3 psp_controller_server.py` | |
| 2. Install the APK on your phone | |
| 3. Connect to your PC's IP address | |
| 4. Launch PPSSPP and play! | |
| files: | | |
| PSPLinuxController-${{ steps.version.outputs.VERSION }}.apk | |
| PSPLinuxController-Server-${{ steps.version.outputs.VERSION }}.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |