-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1004 Bytes
/
Copy pathrelease.yml
File metadata and controls
38 lines (34 loc) · 1004 Bytes
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
name: Release Build
on:
workflow_dispatch:
inputs:
version:
description: 'Version tag (e.g. v1.0.0)'
required: true
type: string
permissions:
contents: write
id-token: write
attestations: write
jobs:
release:
uses: ./.github/workflows/build-publish.yml
with:
version: ${{ inputs.version }}
secrets: inherit
# First submission to microsoft/winget-pkgs must be manual; this job automates
# subsequent version bumps once the package exists upstream and WINGET_TOKEN
# (classic PAT, public_repo scope) is configured. Skips silently otherwise.
winget:
needs: release
runs-on: ubuntu-latest
env:
WINGET_PAT: ${{ secrets.WINGET_TOKEN }}
steps:
- name: Submit winget version bump
if: env.WINGET_PAT != ''
uses: vedantmgoyal9/winget-releaser@v2
with:
identifier: SysAdminDoc.REDplusplus
release-tag: ${{ inputs.version }}
token: ${{ secrets.WINGET_TOKEN }}