Skip to content

Commit 445b5d0

Browse files
author
Bijan Chokoufe Nejad
committed
Refactor workflow
1 parent 6f54339 commit 445b5d0

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
1-
name: Cross Release After Testing
2-
1+
name: Cross Release
32
on:
4-
create:
5-
branches:
6-
- 'refs/tags/*'
7-
3+
push:
4+
branches: [master]
5+
tags: ["*"]
86
jobs:
9-
test-and-release:
10-
7+
publish:
118
runs-on: ubuntu-latest
12-
139
env:
1410
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE}}
1511
GPG_KEYS: ${{ secrets.GPG_KEYS}}
1612
SONATYPE_SBT: ${{ secrets.SONATYPE_SBT }}
17-
13+
PGP_SECRET: ${{ secrets.GPG_KEYS }}
14+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
15+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USER }}
1816
steps:
1917
- uses: actions/checkout@v1
2018
- uses: olafurpg/setup-scala@v2
@@ -26,8 +24,3 @@ jobs:
2624
echo $SONATYPE_SBT > ~/.sbt/1.0/sonatype.sbt
2725
- name: Test & Release
2826
run: sbt ci-release
29-
env:
30-
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
31-
PGP_SECRET: ${{ secrets.GPG_KEYS }}
32-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
33-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USER }}

0 commit comments

Comments
 (0)