Update msix_deploy.yml #1
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: デプロイ(msix) | |
on: [push] | |
jobs: | |
build_for_windows: | |
name: Windows用ビルド | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: 'stable' | |
cache: true | |
- name: Flutter pub get | |
run: flutter pub get | |
- name: Get version | |
run: echo "BUMP_VERSION=$(flutter pub run cider version)" >> $GITHUB_ENV | |
- name: Create msix file | |
run: | | |
flutter pub activate flutter_distributor | |
flutter_distributor package --platform windows --target msix | |
mv ./dist/$BUMP_VERSION/miria-$BUMP_VERSION-windows.msix ./dist/$BUMP_VERSION/miria-$BUMP_VERSION-windows-x64.msix | |
- name: Create tag and release note | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release create v$BUMP_VERSION+win --generate-notes --draft ./dist/$BUMP_VERSION/miria-$BUMP_VERSION-windows-x64.msix |