Skip to content

Commit 9260957

Browse files
committed
Make release dependant on successful tests
1 parent 60d8c6f commit 9260957

File tree

2 files changed

+15
-19
lines changed

2 files changed

+15
-19
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ jobs:
3232
shell: bash
3333
- name: Test virtualenv
3434
run: scripts/virtualenv_test.sh 0.5.2
35+
publish:
36+
runs-on: ubuntu-latest
37+
needs: [test]
38+
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
39+
steps:
40+
- uses: actions/checkout@v3
41+
with:
42+
fetch-depth: 0
43+
- uses: olafurpg/setup-scala@v13
44+
- run: sbt ci-release
45+
env:
46+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
47+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
48+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
49+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.github/workflows/release.yml

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

0 commit comments

Comments
 (0)