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', ref: 'main',
inputs: {"version": process.env.GITHUB_REF.replace('refs/tags/v', '')} 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 name: Submit Oh My Posh to the Windows Store
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
description: 'The version to publish' description: 'The latest version'
required: true required: true
jobs: jobs:
microsoft_store: microsoft_store:
name: Publish Microsoft Store name: Publish Microsoft Store
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Configure Store Credentials 🔑 - name: Configure Store Credentials 🔑
uses: microsoft/store-submission@v1 uses: jandedobbeleer/store-submission@submission-status
with: with:
command: configure command: configure
type: win32 type: win32
@ -23,9 +21,9 @@ jobs:
tenant-id: ${{ secrets.TENANT_ID }} tenant-id: ${{ secrets.TENANT_ID }}
client-id: ${{ secrets.CLIENT_ID }} client-id: ${{ secrets.CLIENT_ID }}
client-secret: ${{ secrets.CLIENT_SECRET }} client-secret: ${{ secrets.CLIENT_SECRET }}
only-on-ready: true
- name: Update draft submission - name: Update draft submission
uses: microsoft/store-submission@v1 uses: jandedobbeleer/store-submission@submission-status
with: with:
command: update command: update
product-update: '{ product-update: '{
@ -39,8 +37,7 @@ jobs:
} }
] ]
}' }'
- name: Publish Submission - name: Publish Submission
uses: microsoft/store-submission@v1 uses: jandedobbeleer/store-submission@submission-status
with: with:
command: publish command: publish