ci: add beta release workflow

This commit is contained in:
Ammar Ahmed
2025-02-28 16:05:03 +05:00
committed by Abdullah Atta
parent 8f1545916f
commit 55c6be4622
2 changed files with 16 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ on: workflow_dispatch
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-22.04
timeout-minutes: 40 timeout-minutes: 40
env: env:
CMAKE_C_COMPILER_LAUNCHER: ccache CMAKE_C_COMPILER_LAUNCHER: ccache
@@ -22,7 +22,7 @@ jobs:
- name: Use specific Java version for the builds - name: Use specific Java version for the builds
uses: joschi/setup-jdk@v2 uses: joschi/setup-jdk@v2
with: with:
java-version: "11" java-version: "17"
architecture: "x64" architecture: "x64"
- name: Install node modules - name: Install node modules
@@ -122,23 +122,23 @@ jobs:
with: with:
path: apps/mobile path: apps/mobile
- name: Publish to Playstore # - name: Publish to Playstore
id: deploy # id: deploy
uses: r0adkll/upload-google-play@v1.1.1 # uses: r0adkll/upload-google-play@v1.1.1
with: # with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }} # serviceAccountJsonPlainText: ${{ secrets.SERVICE_ACCOUNT_JSON }}
packageName: com.streetwriters.notesnook # packageName: com.streetwriters.notesnook
releaseFiles: ${{steps.sign_app.outputs.signedReleaseFile}} # releaseFiles: ${{steps.sign_app.outputs.signedReleaseFile}}
track: alpha # track: production
status: completed # status: completed
whatsNewDirectory: apps/mobile/native/android/releasenotes/ # whatsNewDirectory: apps/mobile/native/android/releasenotes/
- name: Create release draft on Github - name: Create release draft on Github
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
with: with:
draft: true draft: true
tag_name: ${{ steps.package-version.outputs.current-version}}-beta-android tag_name: ${{ steps.package-version.outputs.current-version}}-beta-android
name: Notesnook Android v${{ steps.package-version.outputs.current-version}} Beta name: Notesnook Android v${{ steps.package-version.outputs.current-version}}
repository: streetwriters/notesnook repository: streetwriters/notesnook
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
files: | files: |
@@ -146,6 +146,7 @@ jobs:
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-armeabi-v7a.apk apps/mobile/native/android/app/build/outputs/apk/release/notesnook-armeabi-v7a.apk
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86.apk apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86.apk
apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86_64.apk apps/mobile/native/android/app/build/outputs/apk/release/notesnook-x86_64.apk
${{steps.sign_app.outputs.signedReleaseFile}}
- name: Upload sourcemaps - name: Upload sourcemaps
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4

View File

@@ -1,6 +1,6 @@
{ {
"name": "@notesnook/mobile", "name": "@notesnook/mobile",
"version": "3.0.34", "version": "3.1.0-beta.0",
"private": true, "private": true,
"license": "GPL-3.0-or-later", "license": "GPL-3.0-or-later",
"workspaces": [ "workspaces": [