mirror of
https://github.com/tooot-app/app
synced 2025-01-02 20:58:26 +01:00
Try using bearer token
This commit is contained in:
parent
04d2f5fa98
commit
3cbcb6b3f9
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
||||
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY_ID }}
|
||||
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
|
||||
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_API_KEY_KEY }}
|
||||
GH_PAT_GET_RELEASE: ${{ secrets.GH_PAT_GET_RELEASE }}
|
||||
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: yarn app:build ios
|
||||
|
||||
build-android:
|
||||
@ -74,7 +74,7 @@ jobs:
|
||||
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
||||
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
|
||||
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
|
||||
GH_PAT_GET_RELEASE: ${{ secrets.GH_PAT_GET_RELEASE }}
|
||||
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: yarn app:build android
|
||||
|
||||
create-release:
|
||||
@ -114,6 +114,6 @@ jobs:
|
||||
ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
||||
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
|
||||
ANDROID_KEYSTORE_KEY_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_KEY_PASSWORD }}
|
||||
GH_PAT_GET_RELEASE: ${{ secrets.GH_PAT_GET_RELEASE }}
|
||||
GH_PAT_GET_RELEASE: ${{ secrets.GITHUB_TOKEN }}
|
||||
FL_GITHUB_RELEASE_API_BEARER: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: yarn app:build release
|
||||
|
@ -149,7 +149,7 @@ private_lane :build_android_apk do
|
||||
end
|
||||
|
||||
lane :ios do
|
||||
releaseExists = get_github_release(url: GITHUB_REPO, version: "v#{VERSION}", api_token: ENV['GH_PAT_GET_RELEASE'])
|
||||
releaseExists = get_github_release(url: GITHUB_REPO, version: "v#{VERSION}", api_bearer: ENV['GH_PAT_GET_RELEASE'])
|
||||
if releaseExists
|
||||
puts("Release #{GITHUB_RELEASE} exists. Continue with building React Native only.")
|
||||
else
|
||||
@ -161,7 +161,7 @@ lane :ios do
|
||||
end
|
||||
|
||||
lane :android do
|
||||
releaseExists = get_github_release(url: GITHUB_REPO, version: "v#{VERSION}", api_token: ENV['GH_PAT_GET_RELEASE'])
|
||||
releaseExists = get_github_release(url: GITHUB_REPO, version: "v#{VERSION}", api_bearer: ENV['GH_PAT_GET_RELEASE'])
|
||||
if releaseExists
|
||||
puts("Release #{GITHUB_RELEASE} exists. Continue with building React Native only.")
|
||||
else
|
||||
@ -172,7 +172,7 @@ lane :android do
|
||||
end
|
||||
|
||||
lane :release do
|
||||
releaseExists = get_github_release(url: GITHUB_REPO, version: "v#{VERSION}", api_token: ENV['GH_PAT_GET_RELEASE'])
|
||||
releaseExists = get_github_release(url: GITHUB_REPO, version: "v#{VERSION}", api_bearer: ENV['GH_PAT_GET_RELEASE'])
|
||||
if !releaseExists
|
||||
build_android_apk
|
||||
set_github_release(
|
||||
|
Loading…
Reference in New Issue
Block a user