Skip to content

Commit b3e022c

Browse files
committed
Fix choco release
1 parent 0eb4683 commit b3e022c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

.github/workflows/publish-chocolatey.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,4 @@ jobs:
3535
with:
3636
name: scala.nupkg
3737
- 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 }}

.github/workflows/releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ permissions:
2525

2626
jobs:
2727
publish-sdkman:
28-
runs-on: [self-hosted, Linux]
28+
runs-on: ubuntu-latest
2929
container:
3030
image: lampepfl/dotty:2021-03-22
3131
options: --cpu-shares 4096

.github/workflows/test-chocolatey.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ on:
2121

2222
env:
2323
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 || '' }}
2528

2629
jobs:
2730
test:
@@ -47,5 +50,4 @@ jobs:
4750
- name : Test the `scaladoc` command
4851
run : scaladoc --version
4952
- name : Uninstall the `scala` package
50-
run : choco uninstall scala
51-
53+
run : choco uninstall scala

0 commit comments

Comments
 (0)