Skip to content

Commit a52e5be

Browse files
Switch to Scala CLI
Getting weird publishing issues with Mill
1 parent 98e72b3 commit a52e5be

File tree

9 files changed

+30
-505
lines changed

9 files changed

+30
-505
lines changed

.github/scripts/gpg-setup.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 10 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -14,27 +14,12 @@ jobs:
1414
- uses: actions/checkout@v3
1515
with:
1616
fetch-depth: 0
17-
submodules: true
1817
- uses: coursier/[email protected]
1918
- uses: coursier/[email protected]
2019
with:
21-
jvm: temurin:17
22-
- name: Compile
23-
run: ./mill __.compile
24-
25-
format:
26-
runs-on: ubuntu-latest
27-
steps:
28-
- uses: actions/checkout@v3
29-
with:
30-
fetch-depth: 0
31-
submodules: true
32-
- uses: coursier/[email protected]
33-
- uses: coursier/[email protected]
34-
with:
35-
jvm: 8
36-
apps: scalafmt:3.1.1
37-
- run: scalafmt --check
20+
apps: "scala-cli:1.0.0-RC2"
21+
- name: Test
22+
run: scala-cli --power compile . --cross
3823

3924
publish:
4025
if: github.event_name == 'push'
@@ -43,17 +28,14 @@ jobs:
4328
- uses: actions/checkout@v3
4429
with:
4530
fetch-depth: 0
46-
submodules: true
4731
- uses: coursier/[email protected]
4832
- uses: coursier/[email protected]
4933
with:
50-
jvm: temurin:17
51-
- run: .github/scripts/gpg-setup.sh
52-
env:
53-
PGP_SECRET: ${{ secrets.PUBLISH_SECRET_KEY }}
54-
- name: Release
55-
run: ./mill -i publishSonatype __.publishArtifacts
34+
apps: "scala-cli:1.0.0-RC2"
35+
- name: Publish
36+
run: scala-cli --power publish . --cross
5637
env:
57-
PGP_PASSPHRASE: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}
58-
SONATYPE_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
59-
SONATYPE_USERNAME: ${{ secrets.PUBLISH_USER }}
38+
PUBLISH_USER: ${{ secrets.PUBLISH_USER }}
39+
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
40+
PUBLISH_SECRET_KEY: ${{ secrets.PUBLISH_SECRET_KEY }}
41+
PUBLISH_SECRET_KEY_PASSWORD: ${{ secrets.PUBLISH_SECRET_KEY_PASSWORD }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
out/
1+
.scala-build/
2+
.bsp/
23
.bloop/
34
.metals/
45
.vscode/

.mill-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

build.sc

Lines changed: 0 additions & 98 deletions
This file was deleted.

mill

Lines changed: 0 additions & 194 deletions
This file was deleted.

0 commit comments

Comments
 (0)