Skip to content

Commit

Permalink
wip: nixify
Browse files Browse the repository at this point in the history
  • Loading branch information
pshirshov committed Oct 26, 2024
1 parent 99b2e1f commit 68f41e5
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ jobs:
scala: [ '2.12', '2.13', '3' ]
steps:
- uses: 7mind/github-env@minimal
- uses: actions/cache@v4
name: Cache (SBT, Ivy, Coursier)
with:
path: |
~/.sbt
~/.cache/coursier
~/.ivy2/cache
key: ${{ runner.os }}-scala
- name: Build and Test
env:
SCALA_VERSION: ${{ matrix.scala }}
Expand Down Expand Up @@ -64,6 +56,8 @@ jobs:
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
steps:
- uses: 7mind/github-env@minimal
with:
cache-scala: false
- uses: bitwarden/sm-action@v2
with:
access_token: ${{ secrets.TOKEN_BITWARDEN_SM }}
Expand All @@ -73,7 +67,7 @@ jobs:
- name: Publish alien artifacts
run: ./build.sh nix publish-alien

publish-artifacts:
publish-scala:
runs-on: ubuntu-latest
needs: [ 'build', 'checksecret' ]
if: needs.checksecret.outputs.HAVE_SECRETS == 'true'
Expand All @@ -90,14 +84,6 @@ jobs:
994f97a2-97a4-4fe1-806a-b1930104435f > SONATYPE_CREDENTIALS_FILE
749f4227-9f11-4ceb-9121-b1930110c3a9 > OPENSSL_KEY
a2fe5b5b-5f3f-47f8-961c-b1930110cea7 > OPENSSL_IV
- uses: actions/cache@v4
name: Cache (SBT, Ivy, Coursier)
with:
path: |
~/.sbt
~/.cache/coursier
~/.ivy2/cache
key: ${{ runner.os }}-scala
- name: Build and Publish to Sonatype
env:
SONATYPE_SECRET: .secrets/credentials.sonatype-nexus.properties
Expand Down

0 comments on commit 68f41e5

Please sign in to comment.