Skip to content

Commit

Permalink
Refactor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bijan Chokoufe Nejad committed Aug 18, 2020
1 parent 6f54339 commit 445b5d0
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
name: Cross Release After Testing

name: Cross Release
on:
create:
branches:
- 'refs/tags/*'

push:
branches: [master]
tags: ["*"]
jobs:
test-and-release:

publish:
runs-on: ubuntu-latest

env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE}}
GPG_KEYS: ${{ secrets.GPG_KEYS}}
SONATYPE_SBT: ${{ secrets.SONATYPE_SBT }}

PGP_SECRET: ${{ secrets.GPG_KEYS }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USER }}
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v2
Expand All @@ -26,8 +24,3 @@ jobs:
echo $SONATYPE_SBT > ~/.sbt/1.0/sonatype.sbt
- name: Test & Release
run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.GPG_KEYS }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USER }}

0 comments on commit 445b5d0

Please sign in to comment.