mirror of
https://github.com/logseq/logseq.git
synced 2026-04-28 08:04:40 +00:00
ci: add android apk build to nightly and beta release
This commit is contained in:
31
.github/workflows/build-desktop-release.yml
vendored
31
.github/workflows/build-desktop-release.yml
vendored
@@ -350,9 +350,18 @@ jobs:
|
||||
name: logseq-darwin-arm64-builds
|
||||
path: builds
|
||||
|
||||
# reuse workflow via workflow_call
|
||||
build-android:
|
||||
uses: logseq/logseq/.github/workflows/build-android.yml@master
|
||||
with:
|
||||
build-target: "${{ github.event.inputs.build-target }}"
|
||||
secrets:
|
||||
ANDROID_KEYSTORE: "${{ secrets.ANDROID_KEYSTORE }}"
|
||||
ANDROID_KEYSTORE_PASSWORD: "${{ secrets.ANDROID_KEYSTORE_PASSWORD }}"
|
||||
|
||||
nightly-release:
|
||||
if: ${{ github.event_name == 'schedule' || github.event.inputs.build-target == 'nightly' }}
|
||||
needs: [ build-macos-x64, build-macos-arm64, build-linux, build-windows ]
|
||||
needs: [ build-macos-x64, build-macos-arm64, build-linux, build-windows, build-android ]
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Download MacOS x64 Artifacts
|
||||
@@ -379,11 +388,18 @@ jobs:
|
||||
name: logseq-win64-builds
|
||||
path: ./
|
||||
|
||||
- name: Download Android Artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: logseq-android-builds
|
||||
path: ./
|
||||
|
||||
- name: Generate SHA256 checksums
|
||||
run: |
|
||||
sha256sum *-darwin-* > SHA256SUMS.txt
|
||||
sha256sum *-win-* >> SHA256SUMS.txt
|
||||
sha256sum *-linux-* >> SHA256SUMS.txt
|
||||
sha256sum *.apk >> SHA256SUMS.txt
|
||||
cat SHA256SUMS.txt
|
||||
|
||||
- name: List files
|
||||
@@ -395,7 +411,7 @@ jobs:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: nightly
|
||||
name: 'Desktop APP Nightly Release $$'
|
||||
name: 'Desktop/Mobile APP Nightly Release $$'
|
||||
draft: false
|
||||
prerelease: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.is-pre-release) || (github.event_name == 'schedule')}}
|
||||
body: |
|
||||
@@ -407,11 +423,12 @@ jobs:
|
||||
./*.dmg
|
||||
./*.exe
|
||||
./*.AppImage
|
||||
./*.apk
|
||||
|
||||
release:
|
||||
# NOTE: For now, we only have beta channel to be released on Github
|
||||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.build-target != 'nightly' }}
|
||||
needs: [ build-macos-x64, build-macos-arm64, build-linux, build-windows ]
|
||||
needs: [ build-macos-x64, build-macos-arm64, build-linux, build-windows, build-android ]
|
||||
runs-on: ubuntu-18.04
|
||||
steps:
|
||||
- name: Download MacOS x64 Artifacts
|
||||
@@ -438,6 +455,12 @@ jobs:
|
||||
name: logseq-win64-builds
|
||||
path: ./
|
||||
|
||||
- name: Download Android Artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
with:
|
||||
name: logseq-android-builds
|
||||
path: ./
|
||||
|
||||
- name: List files
|
||||
run: ls -rl
|
||||
|
||||
@@ -452,6 +475,7 @@ jobs:
|
||||
sha256sum *-darwin-* > SHA256SUMS.txt
|
||||
sha256sum *-win-* >> SHA256SUMS.txt
|
||||
sha256sum *-linux-* >> SHA256SUMS.txt
|
||||
sha256sum *.apk >> SHA256SUMS.txt
|
||||
cat SHA256SUMS.txt
|
||||
|
||||
- name: Create Release Draft
|
||||
@@ -471,3 +495,4 @@ jobs:
|
||||
./*.dmg
|
||||
./*.exe
|
||||
./*.AppImage
|
||||
./*.apk
|
||||
|
||||
Reference in New Issue
Block a user