Skip to content

Commit 79d5fa6

Browse files
authored
Make draft release to upload files and promote right after (#6616)
1 parent e56b7e0 commit 79d5fa6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/onPush.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ jobs:
8383
run: |
8484
echo $VERSION_CODE > ./app/build/outputs/version_code.txt
8585
86-
- name: Create Github Pre-Release
86+
- name: Create draft Github Pre-Release
8787
if: github.event.inputs.beta == 'true'
8888
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2.6.1
8989
with:
9090
tag_name: ${{ steps.rel_number.outputs.version }}
9191
body_path: ./app/build/outputs/changelogGithub
92-
draft: false
92+
draft: true
9393
prerelease: true
9494
files: |
9595
./app/build/outputs/apk/full/release/app-full-release.apk
@@ -101,6 +101,12 @@ jobs:
101101
./strings.zip
102102
./app/src/main/res/xml/locales_config.xml
103103
104+
- name: Publish Pre-Release
105+
if: github.event.inputs.beta == 'true'
106+
run: gh release edit ${{ steps.rel_number.outputs.version }} --draft=false
107+
env:
108+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109+
104110
- name: Deploy to Firebase
105111
env:
106112
KEYSTORE_PASSWORD: ${{ secrets.ORIGINAL_KEYSTORE_FILE_PASSWORD }}

0 commit comments

Comments
 (0)