forked from dirs-dev/directories-jvm
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from coursier/fix-javadoc
Fix javadoc
- Loading branch information
Showing
6 changed files
with
37 additions
and
35 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 |
---|---|---|
|
@@ -15,28 +15,29 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- uses: coursier/[email protected] | ||
- uses: VirtusLab/scala-cli-setup@v1.0 | ||
- uses: VirtusLab/scala-cli-setup@v1 | ||
with: | ||
power: true | ||
- name: Compile | ||
run: scala-cli compile . # Just in case, ensuring the project compiles fine as a pure Java project (--scala option required to run tests, see below) | ||
- name: Test | ||
run: scala-cli test . --scala 3.3.3 # Specifying a Scala version as a workaround for VirtusLab/scala-cli#2940 | ||
- name: Publish locally | ||
run: rm -f project.ci.java && scala-cli publish local . # This ensures that javadoc generation succeeds in particular | ||
|
||
publish: | ||
needs: test | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: coursier/[email protected] | ||
- uses: VirtusLab/scala-cli-setup@v1.0 | ||
- uses: VirtusLab/scala-cli-setup@v1 | ||
with: | ||
power: true | ||
- name: Publish | ||
run: scala-cli publish . --doc=false # disabling javadoc because of VirtusLab/scala-cli#2939 | ||
run: scala-cli publish . | ||
env: | ||
PUBLISH_USER: ${{ secrets.PUBLISH_USER }} | ||
PUBLISH_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }} | ||
|
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,6 @@ | ||
//> using publish.ci.repository "central" | ||
//> using publish.ci.user "env:PUBLISH_USER" | ||
//> using publish.ci.password "env:PUBLISH_PASSWORD" | ||
//> using publish.ci.secretKey "env:PUBLISH_SECRET_KEY" | ||
//> using publish.ci.secretKeyPassword "env:PUBLISH_SECRET_KEY_PASSWORD" | ||
//> using publish.ci.publicKey "env:PUBLISH_PUBLIC_KEY" |
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
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
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
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