-
-
Notifications
You must be signed in to change notification settings - Fork 121
44 lines (40 loc) · 1.27 KB
/
publisher.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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: [created]
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 }}'