Skip to content

ビルドテスト(Android・iOS対応を消して) #1

ビルドテスト(Android・iOS対応を消して)

ビルドテスト(Android・iOS対応を消して) #1

Workflow file for this run

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
$HOME/.pub-cache/bin/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