From ceab0bb9a92d3fdbdb789b8b2df210599bdd15b7 Mon Sep 17 00:00:00 2001 From: Eric Trenkel Date: Tue, 15 Aug 2023 21:42:14 +0200 Subject: [PATCH] Added publisher workflow (#210) * Changed "Quick actions" to "snippets" * Changed Community Actions to Snippets * Version bump * Version bump * Changed snippet to code snippet * Added store publish workflow * Fixed publisher.yml --- .github/workflows/publisher.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/publisher.yml diff --git a/.github/workflows/publisher.yml b/.github/workflows/publisher.yml new file mode 100644 index 0000000..d8ea14c --- /dev/null +++ b/.github/workflows/publisher.yml @@ -0,0 +1,32 @@ +name: Publish to Microsoft Store + +on: + workflow_dispatch: + push: + tags: + - '*' + +jobs: + # Publish to Microsoft Store + publish: + runs-on: ubuntu-latest + steps: + # Download release asset + - id: download-release-asset + name: Download release asset + uses: dsaltares/fetch-gh-release-asset@master + with: + version: tags/${{ env.RELEASE }} + file: wsl2-distro-manager-v${{ env.RELEASE }}.msix + target: release.msix + token: ${{ secrets.DEPLOY_TOKEN }} + + # Publish to Microsoft Store + - uses: isaacrlevin/windows-store-action@1.0 + name: Publish to Store + with: + tenant-id: ${{ secrets.AZURE_AD_TENANT_ID }} + client-id: ${{ secrets.AZURE_AD_APPLICATION_CLIENT_ID }} + client-secret: ${{ secrets.AZURE_AD_APPLICATION_SECRET }} + app-id: ${{ secrets.STORE_APP_ID }} + package-path: release.msix \ No newline at end of file