File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 4545 uses : codecov/codecov-action@v1
4646 with :
4747 fail_ci_if_error : true
48+
49+ publish :
50+ name : Publish
51+ needs : [build]
52+ if : github.event_name != 'pull_request' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v'))
53+ runs-on : ubuntu-latest
54+ steps :
55+ - name : Checkout
56+ uses : actions/checkout@v2
57+ with :
58+ fetch-depth : 0
59+
60+ - name : Setup Scala
61+ uses : olafurpg/setup-scala@v10
62+ with :
63+ 64+
65+ - uses : actions/cache@v2
66+ with :
67+ path : |
68+ ~/.sbt
69+ ~/.ivy2/cache
70+ ~/.coursier/cache/v1
71+ ~/.cache/coursier/v1
72+ key : |
73+ ${{ runner.os }}-sbt-${{ hashFiles('project/build.properties') }}-${{ hashFiles('**/*.sbt') }}
74+
75+ - name : Publish artifacts
76+ env :
77+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
78+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
79+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
80+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
81+ run : sbt ci-release
You can’t perform that action at this time.
0 commit comments