Publish to Microsoft Store #26
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: Publish to Microsoft Store | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: Empty for latest tag or specify a tag to publish | |
type: string | |
release: | |
types: [published] | |
jobs: | |
# Publish to Microsoft Store | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Setup variables | |
- name: Save job output OR workflow dispatch to Env | |
run: | | |
if [[ ${{ github.event_name == 'workflow_dispatch' }} == true ]]; then | |
TAG=${{ inputs.tag }} | |
else | |
TAG=${{ github.ref_name }} | |
fi | |
echo "TAG=$TAG" >> $GITHUB_ENV | |
echo "Tag: $TAG" | |
# Download release asset | |
- name: Download release asset | |
uses: dsaltares/fetch-gh-release-asset@master | |
with: | |
version: tags/${{ env.TAG }} | |
file: wsl2-distro-manager-${{ env.TAG }}-unsigned.msix | |
target: '${{ github.workspace }}/release.msix' | |
# Publish to Microsoft Store | |
- uses: isaacrlevin/windows-store-action@main | |
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: '${{ github.workspace }}' |