Skip to content

Commit

Permalink
[TEST] CI: create releases on every run
Browse files Browse the repository at this point in the history
Signed-off-by: Arjun Ingole <[email protected]>
  • Loading branch information
Arjun-Ingole committed Oct 24, 2022
1 parent b334fb6 commit 8da8e57
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
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

0 comments on commit 8da8e57

Please sign in to comment.