blob: 0eb02396e2054eb943b40103f8671c445d2bfeed [file] [log] [blame]
name: Release MSIX to Microsoft Store
on: workflow_dispatch
# Declare default permissions as read only.
permissions: read-all
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- uses: subosito/flutter-action@2783a3f08e1baf891508463f8c6653c258246225 # v2.12.0
- uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d # v1.6.0
- uses: microsoft/setup-msstore-cli@3b2ec9136230357ce9abc02b9d056626fb248d3f # v1
# Instructions on obtaining these secrets can be found at https://github.com/marketplace/actions/windows-store-publish#obtaining-your-credentials
- name: Configure MS CLI
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 }}
- name: Install dependencies
run: flutter pub get
- name: Create MSIX package
run: msstore package
- name: Publish MSIX to the Microsoft Store
run: msstore publish -v