-
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (63 loc) · 1.98 KB
/
general_workflow_release_app_development.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: app_release_type_development
on:
# push:
# # [push, workflow_dispatch]
# schedule: [{cron: "0 0 * * 0"}]
workflow_dispatch:
permissions:
contents: write
jobs:
build:
name: app_release_type_development
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true
- name: Print
run: |
ls
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: "17"
distribution: "adopt"
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: "3.22.3"
channel: "stable"
- name: check dart version
run: dart --version
- name: Install Dependencies
run: |
sudo apt update -y
sudo apt-get install -y make git zlib1g-dev libssl-dev gperf cmake clang libc++-dev libc++abi-dev php-cli cmake g++
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
# mpv
sudo apt-get install -y libmpv-dev mpv
shell: bash
- name: Mkdir result
run: mkdir result
- name: Set Flutter enable devices
continue-on-error: true
run: |
flutter config --enable-web
flutter config --enable-linux-desktop
flutter config --enable-macos-desktop
flutter config --enable-windows-desktop
flutter config --enable-android
flutter config --enable-ios
# General Bot App
- name: Pub General Machine System Services
run: |
cd general_machine_system_services/apps/global_app
flutter clean
flutter pub get
- name: Publish General Machine System Services Linux
env:
packagex_github_token: ${{ secrets.TOKEN_GITHUB }}
run: |
cd general_machine_system_services/apps/global_app
dart run packagex publish