Skip to content

Commit 91df48d

Browse files
authored
break up ci cd workflow (#11)
1 parent be98c06 commit 91df48d

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/cd.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CD
2+
on:
3+
push:
4+
branches: [master]
5+
tags: ["*"]
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: olafurpg/setup-scala@v2
12+
- uses: olafurpg/setup-gpg@v2
13+
- name: publish to sonatype
14+
run: csbt ci-release
15+
env:
16+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
17+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
18+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
19+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

.github/workflows/cicd.yml renamed to .github/workflows/ci.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: CI/CD
1+
name: CI
22
on: [push]
33
jobs:
44
test:
@@ -27,19 +27,4 @@ jobs:
2727
- name: run python tests
2828
run: |
2929
cd python
30-
sh run-tests.sh
31-
deploy:
32-
if: contains(github.ref, 'master')
33-
needs: test
34-
runs-on: ubuntu-latest
35-
steps:
36-
- uses: actions/checkout@v1
37-
- uses: olafurpg/setup-scala@v2
38-
- uses: olafurpg/setup-gpg@v2
39-
- name: publish to sonatype
40-
run: csbt ci-release
41-
env:
42-
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
43-
PGP_SECRET: ${{ secrets.PGP_SECRET }}
44-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
45-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
30+
sh run-tests.sh

0 commit comments

Comments
 (0)