We’re happy to announce that Revopush now offers a GitHub Action that lets you use all the CLI commands to build and release React Native bundles — automating your deployment process with ease! In this article, we’ll walk you through setting up and using the Revopush GitHub Action.
You must be either a Repository Owner or have Admin permissions for the repository to store Revopush access key into secrets. If you don’t see the option to add secrets, check your role in the repository or ask the owner or admin to grant you the necessary permissions.
$
revopush access-key patch "GH_REVOPUSH_ACCESS_KEY" --ttl 128d
on:
workflow_dispatch:
jobs:
job_id:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tools cache
id: tool-caches
uses: actions/cache@v4
with:
path: /opt/hostedtoolcache/revopush
key: revopush-${{ runner.os }}-${{ github.run_id }}
restore-keys: |
revopush-${{ runner.os }}-
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Setup Revopush CLI
uses: 'revopush/[email protected]'
id: setup-revopush-cli
with:
version: 'latest'
accessKey: ${{ secrets.GH_REVOPUSH_ACCESS_KEY }}
- name: Install dependencies
run: npm ci
- name: Release Android bundle
run: revopush release-react myAmazingAndroidApp android -d Staging
- name: Release ios bundle
run: revopush release-react myAmazingIOSApp ios -d Staging
For any questions, please contact our support team. Give a try and let us know what do you think.