A local-first personal finance app
Automatically upload to the MS store on release (#5034)
Julian Dominguez-Schatz913a2c9a68ce
diff --git a/.github/workflows/electron-master.yml b/.github/workflows/electron-master.ymlindex c729a63b90..ea5df358fc 100644--- a/.github/workflows/electron-master.yml+++ b/.github/workflows/electron-master.yml@@ -100,3 +100,45 @@ jobs:!packages/desktop-electron/dist/Actual-windows.exepackages/desktop-electron/dist/*.AppImagepackages/desktop-electron/dist/*.flatpak++ publish-microsoft-store:+ needs: build+ runs-on: windows-latest+ if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') }}+ steps:+ - name: Install StoreBroker+ shell: powershell+ run: |+ Install-Module -Name StoreBroker -AcceptLicense -Force -Scope CurrentUser -Verbose++ - name: Download Microsoft Store artifacts+ uses: actions/download-artifact@v4+ with:+ name: actual-electron-windows-latest-appx++ - name: Submit to Microsoft Store+ shell: powershell+ run: |+ # Disable telemetry+ $global:SBDisableTelemetry = $true++ # Authenticate against the store+ $pass = ConvertTo-SecureString -String '${{ secrets.MICROSOFT_STORE_CLIENT_SECRET }}' -AsPlainText -Force+ $cred = New-Object -TypeName System.Management.Automation.PSCredential -ArgumentList ${{ secrets.MICROSOFT_STORE_CLIENT_ID }},$pass+ Set-StoreBrokerAuthentication -TenantId '${{ secrets.MICROSOFT_STORE_TENANT_ID }}' -Credential $cred++ # Zip and create metadata files+ $artifacts = Get-ChildItem -Path . -Filter *.appx | Select-Object -ExpandProperty FullName+ New-StoreBrokerConfigFile -Path "$PWD/config.json" -AppId ${{ secrets.MICROSOFT_STORE_PRODUCT_ID }}+ New-SubmissionPackage -ConfigPath "$PWD/config.json" -DisableAutoPackageNameFormatting -AppxPath $artifacts -OutPath "$PWD" -OutName submission++ # Submit the app+ # See https://github.com/microsoft/StoreBroker/blob/master/Documentation/USAGE.md#the-easy-way+ Update-ApplicationSubmission `+ -AppId ${{ secrets.MICROSOFT_STORE_PRODUCT_ID }} `+ -SubmissionDataPath "submission.json" `+ -PackagePath "submission.zip" `+ -ReplacePackages `+ -NoStatus `+ -AutoCommit `+ -Forcediff --git a/upcoming-release-notes/5034.md b/upcoming-release-notes/5034.mdnew file mode 100644index 0000000000..4aaf5890c4--- /dev/null+++ b/upcoming-release-notes/5034.md@@ -0,0 +1,6 @@+---+category: Maintenance+authors: [jfdoming]+---++Automatically upload to MS store on release