File tree Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Expand file tree Collapse file tree 2 files changed +44
-1
lines changed Original file line number Diff line number Diff line change 1+ # ##################################################################################################
2+ # ## THIS IS A REUSABLE WORKFLOW TO PUBLISH SCALA TO WINGET ###
3+ # ## HOW TO USE: ###
4+ # ## - THE RELEASE WORKFLOW SHOULD CALL THIS WORKFLOW ###
5+ # ## - IT WILL PUBLISH THE MSI TO WINGET ###
6+ # ## ###
7+ # ## NOTE: ###
8+ # ## - WE SHOULD KEEP IN SYNC THE https://github.com/dottybot/winget-pkgs REPOSITORY ###
9+ # ##################################################################################################
10+
11+
12+ name : Publish Scala to winget
13+ run-name : Publish Scala ${{ inputs.version }} to winget
14+
15+ on :
16+ workflow_call :
17+ inputs :
18+ version :
19+ required : true
20+ type : string
21+ secrets :
22+ DOTTYBOT-TOKEN :
23+ required : true
24+
25+ jobs :
26+ publish :
27+ runs-on : windows-latest
28+ steps :
29+ - uses : vedantmgoyal9/winget-releaser@b87a066d9e624db1394edcd947f8c4e5a7e30cd7
30+ with :
31+ identifier : Scala.Scala.3
32+ version : ${{ inputs.version }}
33+ installers-regex : ' \.msi$'
34+ release-tag : ${{ inputs.version }}
35+ fork-user : dottybot
36+ token : ${{ secrets.DOTTYBOT-WINGET-TOKEN }}
Original file line number Diff line number Diff line change 2929 secrets :
3030 CONSUMER-KEY : ${{ secrets.SDKMAN_KEY }}
3131 CONSUMER-TOKEN : ${{ secrets.SDKMAN_TOKEN }}
32-
32+
33+ publish-winget :
34+ uses : ./.github/workflows/publish-winget.yml
35+ with :
36+ version : ${{ inputs.version }}
37+ secrets :
38+ DOTTYBOT-TOKEN : ${{ secrets.DOTTYBOT_WINGET_TOKEN }}
39+
3340 # TODO: ADD RELEASE WORKFLOW TO CHOCOLATEY AND OTHER PACKAGE MANAGERS HERE
You can’t perform that action at this time.
0 commit comments