diff --git a/.github/workflows/bidderbidderCI.yml b/.github/workflows/bidderbidderCI.yml index 143c4627..c1164433 100644 --- a/.github/workflows/bidderbidderCI.yml +++ b/.github/workflows/bidderbidderCI.yml @@ -3,8 +3,6 @@ name: BidderBidder CI on: push: branches: [ develop ] - pull_request: - branches: [ develop ] jobs: build: @@ -43,3 +41,25 @@ jobs: uses: actions/upload-artifact@v3 with: path: ./app/build/outputs/apk/release/app-release.apk + - name: Download APK from build + uses: actions/download-artifact@v3 + with: + name: artifact + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: "release" + release_name: Release + - name: Upload Release APK + id: upload_release_asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./app/build/outputs/apk/release/app-release.apk + asset_name: BidderBidder.apk + asset_content_type: application/zip