File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 35
35
with :
36
36
name : scala.nupkg
37
37
- name : Publish the package to Chocolatey
38
- run : choco push scala.nupkg --source https://push.chocolatey.org/ --api-key ${{ secrets.API-KEY }}
39
-
38
+ run : choco push scala.${{inputs.version}}.nupkg --source https://push.chocolatey.org/ --api-key ${{ secrets.API-KEY }}
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ permissions:
25
25
26
26
jobs :
27
27
publish-sdkman :
28
- runs-on : [self-hosted, Linux]
28
+ runs-on : ubuntu-latest
29
29
container :
30
30
image : lampepfl/dotty:2021-03-22
31
31
options : --cpu-shares 4096
Original file line number Diff line number Diff line change 21
21
22
22
env :
23
23
CHOCOLATEY-REPOSITORY : chocolatey-pkgs
24
- DOTTY_CI_INSTALLATION : ${{ secrets.GITHUB_TOKEN }}
24
+ # Controls behaviour of chocolatey{Install,Uninstall}.ps1 scripts
25
+ # During snapshot releases it uses a different layout and requires access token to GH Actions artifacts
26
+ # During stable releases it uses publically available archives
27
+ DOTTY_CI_INSTALLATION : ${{ endsWith(inputs.version, '-SNAPSHOT') && secrets.GITHUB_TOKEN || '' }}
25
28
26
29
jobs :
27
30
test :
47
50
- name : Test the `scaladoc` command
48
51
run : scaladoc --version
49
52
- name : Uninstall the `scala` package
50
- run : choco uninstall scala
51
-
53
+ run : choco uninstall scala
You can’t perform that action at this time.
0 commit comments