Updated msix version #41
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: Build Windows app MSIX | |
# Builds a Windows App Installer (.msix) for the Dashboard | |
# | |
# To use this action, add your Windows Certificate file, in base64 format, to a | |
# repository secret called WINDOWS_CERTIFICATE. This action then: | |
# - Installs Flutter and clones your repository | |
# - Decodes your text certificate into a binary .pfx file | |
# - Runs flutter pub run msix:create to build and sign your Flutter app | |
# - Creates a new release and uploads the generated .msix file to it | |
on: | |
push: | |
tags: "*" | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
windows_certificate: ${{ secrets.WINDOWS_CERTIFICATE }} | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v3 | |
- name: Load certificate | |
run: | | |
echo "${{ env.windows_certificate }}" > windows_certificate_decoded.txt | |
openssl enc -base64 -d -in windows_certificate_decoded.txt -out windows_certificate.pfx | |
- name: Install Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
cache: true | |
cache-key: "flutter-windows" # we don't need *the* most recent build | |
- name: Build MSIX file | |
run: | | |
flutter clean | |
flutter pub get | |
dart analyze | |
dart run msix:create | |
- name: Create Release | |
uses: softprops/[email protected] | |
with: | |
files: build/windows/x64/runner/Release/Dashboard.msix | |
name: ${{ github.ref_name }} | |
generate_release_notes: true | |
fail_on_unmatched_files: true |