Merge pull request #8 from plaidev/feat/nubrick-group #8
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: E2E Test | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| publish-e2e-app: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: Only Main | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | |
| - name: Setup jdk | |
| uses: actions/setup-java@91d3aa4956ec4a53e477c4907347b5e3481be8c9 # v2.5.1 | |
| with: | |
| distribution: 'zulu' | |
| java-version: '21' | |
| - name: Build e2e app | |
| run: ./gradlew assembleRelease | |
| - name: Upload e2e app | |
| run: | | |
| curl --fail-with-body -L -X POST \ | |
| -F "file=@./e2e/build/outputs/apk/release/e2e-release-unsigned.apk" \ | |
| -H "Authorization: Token ${{ secrets.MAGICPOD_API_TOKEN }}" \ | |
| "https://app.magicpod.com/api/v1.0/Nativebrik.inc/Nativebrik/upload-file/" |