fix #6
Workflow file for this run
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: デプロイ | |
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 clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev locate | |
wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" | |
chmod +x appimagetool | |
sudo mv appimagetool /usr/local/bin/ | |
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 |