Skip to content

Commit 2c67f4c

Browse files
committed
ci: Test Windows deployment on push
1 parent a63e054 commit 2c67f4c

2 files changed

Lines changed: 35 additions & 38 deletions

File tree

.github/workflows/build-msix.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [published]
66
workflow_dispatch:
7+
push:
8+
branches:
9+
- ci/windows-deployment # TEMP: remove after testing
710

811
jobs:
912
deploy-ios:
@@ -143,3 +146,35 @@ jobs:
143146
APPSTORE_KEY_ID: ${{ secrets.APPSTORE_KEY_ID }}
144147
APPSTORE_KEY_ISSUER_ID: ${{ secrets.APPSTORE_KEY_ISSUER_ID }}
145148
APPSTORE_KEY_CONTENT_BASE64: ${{ secrets.APPSTORE_KEY_CONTENT_BASE64 }}
149+
150+
deploy-windows:
151+
name: Build and Deploy Windows
152+
runs-on: windows-latest
153+
timeout-minutes: 30
154+
defaults:
155+
run:
156+
working-directory: example
157+
158+
steps:
159+
- uses: actions/checkout@v4
160+
161+
- uses: subosito/flutter-action@v2
162+
with:
163+
channel: stable
164+
165+
- run: flutter pub get
166+
167+
- name: Build Windows
168+
run: flutter build windows --release
169+
170+
- name: Create MSIX
171+
run: dart run msix:create --store
172+
173+
- name: Setup Microsoft Store Developer CLI
174+
uses: microsoft/setup-msstore-cli@v1
175+
176+
- name: Configure Microsoft Store Developer CLI
177+
run: msstore reconfigure --tenantId ${{ secrets.AZURE_AD_TENANT_ID }} --clientId ${{ secrets.AZURE_AD_CLIENT_ID }} --clientSecret ${{ secrets.AZURE_AD_CLIENT_SECRET }} --sellerId ${{ secrets.SELLER_ID }}
178+
179+
- name: Publish to Microsoft Store
180+
run: msstore publish . -v -id 9PF0B361V3HC

0 commit comments

Comments
 (0)