forked from scala/scala3
-
Notifications
You must be signed in to change notification settings - Fork 17
36 lines (32 loc) · 1.54 KB
/
publish-winget.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
###################################################################################################
### THIS IS A REUSABLE WORKFLOW TO PUBLISH SCALA TO WINGET ###
### HOW TO USE: ###
### - THE RELEASE WORKFLOW SHOULD CALL THIS WORKFLOW ###
### - IT WILL PUBLISH THE MSI TO WINGET ###
### ###
### NOTE: ###
### - WE SHOULD KEEP IN SYNC THE https://github.com/dottybot/winget-pkgs REPOSITORY ###
###################################################################################################
name: Publish Scala to winget
run-name: Publish Scala ${{ inputs.version }} to winget
on:
workflow_call:
inputs:
version:
required: true
type: string
secrets:
DOTTYBOT-TOKEN:
required: true
jobs:
publish:
runs-on: windows-latest
steps:
- uses: vedantmgoyal9/winget-releaser@b87a066d9e624db1394edcd947f8c4e5a7e30cd7
with:
identifier : Scala.Scala.3
version : ${{ inputs.version }}
installers-regex: '\.msi$'
release-tag : ${{ inputs.version }}
fork-user : dottybot
token : ${{ secrets.DOTTYBOT-WINGET-TOKEN }}