Publish #1242
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
schedule: | |
- cron: '0 5 * * *' | |
concurrency: | |
group: publish | |
cancel-in-progress: true | |
jobs: | |
android: | |
name: Android | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up Java | |
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4 | |
with: | |
distribution: 'adopt' | |
java-version: 17 | |
- name: Install dart | |
uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 # v1 | |
with: | |
sdk: 3.5 | |
- name: Setup | |
run: ./tool/setup.sh | |
- name: Build | |
run: cd packages/neon_framework/example && fvm flutter build apk --split-per-abi --build-number="$(date +"%s")" | |
- uses: ilharp/sign-android-release@2034987c31e3959f7c97e88d5e656e52e6e88bd8 # v1 | |
name: Sign | |
with: | |
buildToolsVersion: 35.0.0 | |
releaseDir: packages/neon_framework/example/build/app/outputs/flutter-apk | |
signingKey: ${{ secrets.SIGNING_KEY }} | |
keyAlias: ${{ secrets.ALIAS }} | |
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} | |
keyPassword: ${{ secrets.KEY_PASSWORD }} | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | |
with: | |
name: Android arm64-v8a | |
path: packages/neon_framework/example/build/app/outputs/flutter-apk/app-arm64-v8a-release-signed.apk | |
if-no-files-found: error | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | |
with: | |
name: Android armeabi-v7a | |
path: packages/neon_framework/example/build/app/outputs/flutter-apk/app-armeabi-v7a-release-signed.apk | |
if-no-files-found: error | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | |
with: | |
name: Android x86_64 | |
path: packages/neon_framework/example/build/app/outputs/flutter-apk/app-x86_64-release-signed.apk | |
if-no-files-found: error | |
- name: F-Droid nightly | |
run: | | |
cp packages/neon_framework/example/build/app/outputs/flutter-apk/app-arm64-v8a-release.apk app-arm64-v8a-debug.apk | |
cp packages/neon_framework/example/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk app-armeabi-v7a-debug.apk | |
cp packages/neon_framework/example/build/app/outputs/flutter-apk/app-x86_64-release.apk app-x86_64-debug.apk | |
sudo apt-get update && sudo apt-get install apksigner python3-pip --no-install-recommends | |
python -m venv venv && source venv/bin/activate | |
pip install https://gitlab.com/fdroid/fdroidserver/-/archive/9684eade0dda3663f5fb68ca02b06f7b0bb7c086/fdroidserver.tar.gz | |
export DEBUG_KEYSTORE=${{ secrets.DEBUG_KEYSTORE }} | |
GITHUB_REPOSITORY=provokateurin/nextcloud-neon fdroid nightly -v --archive-older 10 | |
linux: | |
name: Linux ${{ matrix.architecture.flutter }} | |
runs-on: ubuntu-24.04 | |
permissions: | |
packages: write | |
strategy: | |
fail-fast: false | |
matrix: | |
architecture: | |
- docker: amd64 | |
flutter: x64 | |
- docker: arm64 | |
flutter: arm64 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Login to GHCR | |
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3 | |
with: | |
platforms: ${{ matrix.architecture.docker }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3 | |
with: | |
platforms: linux/${{ matrix.architecture.docker }} | |
- name: Install dart | |
uses: dart-lang/setup-dart@e630b99d28a3b71860378cafdc2a067c71107f94 # v1 | |
with: | |
sdk: 3.5 | |
- name: Setup | |
run: ./tool/setup.sh | |
- name: Build | |
run: ./tool/build-app.sh linux/${{ matrix.architecture.docker }} --build-number="$(date +"%s")" | |
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4 | |
with: | |
name: Linux ${{ matrix.architecture.flutter }} | |
path: packages/neon_framework/example/build/linux/${{ matrix.architecture.flutter }}/release/bundle/* | |
if-no-files-found: error |