-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft of the workflow to publish to Chocolatey
- Loading branch information
1 parent
0934b95
commit 0d3111e
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
################################################################################################### | ||
### THIS IS A REUSABLE WORKFLOW TO PUBLISH SCALA TO CHOCOLATEY ### | ||
### HOW TO USE: ### | ||
### - THE RELEASE WORKFLOW SHOULD CALL THIS WORKFLOW ### | ||
### - IT WILL PUBLISH TO CHOCOLATEY THE MSI ### | ||
### ### | ||
### NOTE: ### | ||
### - WE SHOULD KEEP IN SYNC THE NAME OF THE MSI WITH THE ACTUAL BUILD ### | ||
### - WE SHOULD KEEP IN SYNC THE URL OF THE RELEASE ### | ||
################################################################################################### | ||
|
||
|
||
name: Publish Scala to Chocolatey | ||
run-name: Publish Scala ${{ inputs.version }} to Chocolatey | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
secrets: | ||
# Connect to https://community.chocolatey.org/profiles/scala | ||
# Accessible via https://community.chocolatey.org/account | ||
API-KEY: | ||
required: true | ||
|
||
env: | ||
RELEASE-URL: 'https://github.com/scala/scala3/releases/download/${{ inputs.version }}' | ||
MSI_FILE : 'scala3-${{ inputs.version }}.msi' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- run: echo hello world # TODO: ACTUALLY BUILD THE .nupkg | ||
|
||
publish: | ||
runs-on: windows-latest | ||
needs: build | ||
steps: | ||
- run: echo hello world # TODO: ACTUALLY PUBLISH THE PACKAGE |