chore: publish to the Windows Store every week

This commit is contained in:
Jan De Dobbeleer 2022-05-27 21:14:41 +02:00
parent a4e8bc1b60
commit f3547c8d2a
No known key found for this signature in database
GPG key ID: F6CC273CE5BA9AEE
2 changed files with 17 additions and 8 deletions

View file

@ -64,4 +64,16 @@ jobs:
ref: 'main',
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')}
})
- name: Notify App Store Build 👋
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GH_PAT }}
script: |
await github.request('POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches', {
owner: 'jandedobbeleer',
repo: '${{ github.event.repository.name }}',
workflow_id: 'microsoft_store.yml',
ref: 'main',
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')}
})

View file

@ -1,20 +1,18 @@
name: Submit Oh My Posh to the Windows Store
on:
workflow_dispatch:
inputs:
version:
description: 'The version to publish'
description: 'The latest version'
required: true
jobs:
microsoft_store:
name: Publish Microsoft Store
runs-on: ubuntu-latest
steps:
- name: Configure Store Credentials 🔑
uses: microsoft/store-submission@v1
uses: jandedobbeleer/store-submission@submission-status
with:
command: configure
type: win32
@ -23,9 +21,9 @@ jobs:
tenant-id: ${{ secrets.TENANT_ID }}
client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }}
only-on-ready: true
- name: Update draft submission
uses: microsoft/store-submission@v1
uses: jandedobbeleer/store-submission@submission-status
with:
command: update
product-update: '{
@ -39,8 +37,7 @@ jobs:
}
]
}'
- name: Publish Submission
uses: microsoft/store-submission@v1
uses: jandedobbeleer/store-submission@submission-status
with:
command: publish