diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 05ce9a1..988e4b4 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -4,7 +4,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v2 - name: set up JDK 11 uses: actions/setup-java@v1 with: @@ -15,7 +15,21 @@ jobs: run: echo API_KEY=\"$OPENAI_API_KEY\" > ./local.properties - name: Assemble with Gradle run: ./gradlew :app:assembleDebug - - uses: actions/upload-artifact@v2 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{github.run_number}} + release_name: Release ${{github.run_number}} + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: appDebug - path: app/build/outputs/apk/debug/app-debug.apk \ No newline at end of file + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: app/build/outputs/apk/debug/app-debug.apk + asset_name: app-debug.apk + asset_content_type: application \ No newline at end of file