1+ name : release
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : " The release version"
8+ required : true
9+ branch :
10+ description : " The branch to release from"
11+ required : true
12+
13+ jobs :
14+ scala-2_12 :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : checkout the repo
18+ uses : actions/checkout@v2
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Set up JDK
23+ uses : actions/setup-java@v1
24+ with :
25+ java-version : 11
26+
27+ - name : Import GPG key
28+ id : import_gpg
29+ uses : crazy-max/ghaction-import-gpg@v3
30+ with :
31+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
32+ passphrase : ${{ secrets.PGP_PASSPHRASE }}
33+
34+ - name : GPG user IDs
35+ run : |
36+ echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
37+ echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
38+ echo "name: ${{ steps.import_gpg.outputs.name }}"
39+ echo "email: ${{ steps.import_gpg.outputs.email }}"
40+
41+ - name : publish release
42+ run : sbt ++2.12.10 publishSigned
43+ env :
44+ RELEASE_VERSION : ${{ github.event.inputs.version }}
45+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
46+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
47+
48+ scala-2_13 :
49+ runs-on : ubuntu-latest
50+ steps :
51+ - name : checkout the repo
52+ uses : actions/checkout@v2
53+ with :
54+ fetch-depth : 0
55+
56+ - name : Set up JDK
57+ uses : actions/setup-java@v1
58+ with :
59+ java-version : 11
60+
61+ - name : Import GPG key
62+ id : import_gpg
63+ uses : crazy-max/ghaction-import-gpg@v3
64+ with :
65+ gpg-private-key : ${{ secrets.GPG_PRIVATE_KEY }}
66+ passphrase : ${{ secrets.PGP_PASSPHRASE }}
67+
68+ - name : GPG user IDs
69+ run : |
70+ echo "fingerprint: ${{ steps.import_gpg.outputs.fingerprint }}"
71+ echo "keyid: ${{ steps.import_gpg.outputs.keyid }}"
72+ echo "name: ${{ steps.import_gpg.outputs.name }}"
73+ echo "email: ${{ steps.import_gpg.outputs.email }}"
74+
75+ - name : run tests
76+ run : sbt ++2.13.3 test
77+
78+ - name : publish release
79+ run : sbt ++2.13.3 publishSigned
80+ env :
81+ RELEASE_VERSION : ${{ github.event.inputs.version }}
82+ OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
83+ OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
0 commit comments