forked from shiosyakeyakini-info/miria
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (33 loc) · 1.14 KB
/
deploy.yml
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
name: デプロイ
on: [push]
permissions:
contents: write
jobs:
build_apk_appimage:
name: Android・Linux用ビルド
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- name: Flutter pub get
run: flutter pub get
- name: Get Version
run: echo "VERSION=$(flutter pub run cider version)" >> $GITHUB_ENV
- name: Create AppImage file
run: |
sudo apt install libsecret-1-dev
flutter pub global activate flutter_distributor
flutter_distributor package --platform linux --targets appimage
mv ./dist/$VERSION/miria-$VERSION-linux.AppImage ./dist/$VERSION/miria-$VERSION-amd64.AppImage
- name: Create tag and release note
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create v$VERSION --generate-notes --draft ./dist/$VERSION/miria-$VERSION-amd64.AppImage