File tree 3 files changed +5
-29
lines changed
3 files changed +5
-29
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 @@ -24,31 +24,6 @@ permissions:
24
24
contents : read
25
25
26
26
jobs :
27
- publish-sdkman :
28
- runs-on : [self-hosted, Linux]
29
- container :
30
- image : lampepfl/dotty:2021-03-22
31
- options : --cpu-shares 4096
32
-
33
- env :
34
- SDKMAN_KEY : ${{ secrets.SDKMAN_KEY }}
35
- SDKMAN_TOKEN : ${{ secrets.SDKMAN_TOKEN }}
36
-
37
- steps :
38
- - name : Reset existing repo
39
- run : |
40
- git config --global --add safe.directory /__w/dotty/dotty
41
- git -c "http.https://github.com/.extraheader=" fetch --recurse-submodules=no "https://github.com/lampepfl/dotty" && git reset --hard FETCH_HEAD || true
42
-
43
- - name : Cleanup
44
- run : .github/workflows/cleanup.sh
45
-
46
- - name : Git Checkout
47
- uses : actions/checkout@v4
48
-
49
- - name : Publish to SDKMAN
50
- run : .github/workflows/scripts/publish-sdkman.sh ${{ inputs.version }}
51
-
52
27
compute-digest :
53
28
runs-on : ubuntu-latest
54
29
outputs :
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 :
48
51
run : scaladoc --version
49
52
- name : Uninstall the `scala` package
50
53
run : choco uninstall scala
51
-
You can’t perform that action at this time.
0 commit comments