mirror of
https://github.com/krille-chan/fluffychat
synced 2024-09-10 09:45:14 +00:00
ci: Correctly upload to playstore
This commit is contained in:
parent
2f46181398
commit
577864df24
2 changed files with 4 additions and 4 deletions
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
@ -80,10 +80,9 @@ jobs:
|
||||||
use_lxd: ${{ matrix.os == 'ubuntu-18.04' }}
|
use_lxd: ${{ matrix.os == 'ubuntu-18.04' }}
|
||||||
- name: Promote Snap
|
- name: Promote Snap
|
||||||
env:
|
env:
|
||||||
SNAPCRAFT_TOKEN: ${{ secrets.SNAPCRAFT_TOKEN }}
|
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo $SNAPCRAFT_TOKEN >> snapcrafttoken.txt
|
snapcraft login
|
||||||
snapcraft login --with snapcrafttoken.txt
|
|
||||||
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
if [ "$RELEASE_TYPE" = "rc" ]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
snapcraft promote fluffychat --from-channel edge --to-channel candidate
|
||||||
|
@ -129,6 +128,7 @@ jobs:
|
||||||
cd android
|
cd android
|
||||||
bundle install
|
bundle install
|
||||||
bundle update fastlane
|
bundle update fastlane
|
||||||
|
bundle exec fastlane deploy_internal_test
|
||||||
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
RELEASE_TYPE=$(echo "${{ github.ref }}" | awk -F"/" '{print $3}')
|
||||||
if [ "$RELEASE_TYPE" = "rc" ]; then
|
if [ "$RELEASE_TYPE" = "rc" ]; then
|
||||||
bundle exec fastlane deploy_candidate
|
bundle exec fastlane deploy_candidate
|
||||||
|
|
|
@ -49,6 +49,6 @@ platform :android do
|
||||||
end
|
end
|
||||||
|
|
||||||
lane :deploy_release do
|
lane :deploy_release do
|
||||||
upload_to_play_store(track: 'beta', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true)
|
upload_to_play_store(track: 'internal', track_promote_to: "production", deactivate_on_promote: false, skip_upload_changelogs: true)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue