{"id":14985624,"url":"https://github.com/realabbas/github-actions-react-native","last_synced_at":"2025-08-20T06:32:06.911Z","repository":{"id":41997497,"uuid":"254656975","full_name":"realabbas/Github-Actions-React-Native","owner":"realabbas","description":"Github Action for React Native Build 🦊","archived":false,"fork":false,"pushed_at":"2022-12-17T08:58:20.000Z","size":83,"stargazers_count":160,"open_issues_count":5,"forks_count":16,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-12-14T21:18:20.498Z","etag":null,"topics":["android","automation","build-automation","github-actions","javascript","react-native","yml"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realabbas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-10T14:37:26.000Z","updated_at":"2024-09-05T10:36:05.000Z","dependencies_parsed_at":"2023-01-04T14:31:02.243Z","dependency_job_id":null,"html_url":"https://github.com/realabbas/Github-Actions-React-Native","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2FGithub-Actions-React-Native","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2FGithub-Actions-React-Native/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2FGithub-Actions-React-Native/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realabbas%2FGithub-Actions-React-Native/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realabbas","download_url":"https://codeload.github.com/realabbas/Github-Actions-React-Native/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230400606,"owners_count":18219830,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","automation","build-automation","github-actions","javascript","react-native","yml"],"created_at":"2024-09-24T14:11:23.049Z","updated_at":"2024-12-19T08:07:46.221Z","avatar_url":"https://github.com/realabbas.png","language":"Dockerfile","readme":"![Github Action for React Native Build](https://raw.githubusercontent.com/realabbas/Github-Actions-React-Native/master/demo/github%20action.png)\r\n\r\nThis github action automatically builds the android apk under the artifact section whenever a commit is pushed into the master branch\r\n\r\n![Visitors](https://visitor-badge.glitch.me/badge?page_id=realabbas.github-actions-react-native)\r\n\r\n## Installation\r\n\r\nAdd the *action.yml* as follows ``` .github/workflows/build.yml ``` in the project.\r\nFor more reference see the official [docs](https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#creating-a-workflow-file)\r\n\r\n```\r\nname: react-native-android-build-apk\r\non:\r\n  push:\r\n    branches:\r\n      - master\r\njobs:\r\n  install-and-test:\r\n    runs-on: ubuntu-latest\r\n    steps:\r\n      - uses: actions/checkout@v3\r\n      - name: Install npm dependencies\r\n        run: |\r\n          npm install\r\n  build-android:\r\n    needs: install-and-test\r\n    runs-on: ubuntu-latest\r\n    steps: \r\n      - uses: actions/checkout@v3\r\n      - name: Install npm dependencies\r\n        run: |\r\n          npm install\r\n      - name: Build Android Release\r\n        run: |\r\n          cd android \u0026\u0026 ./gradlew assembleRelease\r\n      - name: Upload Artifact\r\n        uses: actions/upload-artifact@v1\r\n        with:\r\n          name: app-release.apk\r\n          path: android/app/build/outputs/apk/release/\r\n\r\n```\r\n\r\nBuild will be triggered as soon as the commit is pushed to the master branch.\r\n\r\n## Troubleshoot\r\n\r\n### Gradlew commands not working \r\n\r\nYou can try to execute the following command before run gradle commands.\r\n\r\n``` \r\nchmod +x ./gradlew\r\n```\r\n\r\n\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealabbas%2Fgithub-actions-react-native","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealabbas%2Fgithub-actions-react-native","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealabbas%2Fgithub-actions-react-native/lists"}