Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replacing Travis CI with GitHub actions #156

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Using secrets directly in the android build
vishwajitshep0815 committed Jan 19, 2022
commit b5b93aec4236cd3c1e6f298ba4fb65a3897806d5
7 changes: 3 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
- run: |
yarn && yarn lint && yarn test && cd reader-sdk-react-native-quickstart && yarn
yarn lint && cd ..
echo ${{secrets.SQUARE_READER_SDK_APPLICATION_ID}} | sed 's/./& /g'

build-android:
needs: install-and-test
runs-on: ubuntu-latest
@@ -37,12 +37,11 @@ jobs:
SQUARE_READER_SDK_APPLICATION_ID: ${{secrets.SQUARE_READER_SDK_APPLICATION_ID}}
SQUARE_READER_SDK_REPOSITORY_PASSWORD: ${{secrets.SQUARE_READER_SDK_REPOSITORY_PASSWORD}}
- run: |

cd reader-sdk-react-native-quickstart && yarn
node ./node_modules/jetifier/index.js
cd android
./gradlew clean build -PSQUARE_READER_SDK_APPLICATION_ID="$SQUARE_READER_SDK_APPLICATION_ID"
-PSQUARE_READER_SDK_REPOSITORY_PASSWORD="$SQUARE_READER_SDK_REPOSITORY_PASSWORD"
./gradlew clean build -PSQUARE_READER_SDK_APPLICATION_ID= ${{secrets.SQUARE_READER_SDK_APPLICATION_ID}}
-PSQUARE_READER_SDK_REPOSITORY_PASSWORD= ${{secrets.SQUARE_READER_SDK_REPOSITORY_PASSWORD}}

build-ios:
needs: install-and-test