Skip to content

Commit

Permalink
fix(ci): Publishing to Sonatype works again (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnei authored Jul 30, 2024
1 parent 5b2e05e commit c296b48
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 17 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ jobs:
- 1.10.1
- 0.13.18
steps:
- uses: actions/checkout@v3
- uses: olafurpg/setup-scala@v14
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: adopt@1.${{matrix.java}}
- uses: actions/cache@v3
distribution: adopt
java-version: 8
- uses: actions/cache@v4
with:
path: ~/.ivy2/cache
key: ivy-${{hashFiles('**/*.sbt')}}-${{matrix.sbt}}
restore-keys: ivy-
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ~/.sbt
key: sbt-${{hashFiles('**/*.sbt')}}-${{hashFiles('project/build.properties')}}-${{matrix.sbt}}
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ jobs:
runs-on: ubuntu-latest
if: github.repository == 'scapegoat-scala/sbt-scapegoat'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: git fetch --prune --unshallow
- uses: actions/setup-java@v4
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v14
with:
java-version: adopt@1.8
- run: |
echo ${PGP_SECRET:0:4}...${PGP_SECRET: -4}
sbt ci-release
distribution: adopt
java-version: 8
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Expand Down
4 changes: 0 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,3 @@ crossSbtVersions := Seq("0.13.18", "1.5.8")

Test / publishArtifact := false
Test / parallelExecution := false

sonatypeCredentialHost := "s01.oss.sonatype.org"
sonatypeRepository := "https://s01.oss.sonatype.org/service/local"

0 comments on commit c296b48

Please sign in to comment.