File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish
2+ on :
3+ push :
4+ tags :
5+ - " v0.*"
6+ jobs :
7+ publish :
8+ environment :
9+ name : maven-central-and-ruby-gems
10+ runs-on : ubuntu-latest
11+ strategy :
12+ fail-fast : true
13+ steps :
14+ - uses : actions/checkout@v2
15+ - name : Set up OpenJDK 8
16+ uses : actions/setup-java@v2
17+ with :
18+ java-version : 8
19+ distribution : " temurin"
20+ - name : Publish
21+ run : |
22+ mkdir -p $HOME/.gem
23+ touch $HOME/.gem/credentials
24+ chmod 0600 $HOME/.gem/credentials
25+ printf -- "---\n:rubygems_api_key: ${RUBYGEMS_API_KEY}\n" > $HOME/.gem/credentials
26+ ./gradlew --stacktrace publishMavenPublicationToMavenCentralRepository gemPush
27+ env :
28+ ORG_GRADLE_PROJECT_ossrhUsername : ${{ secrets.OSSRH_USERNAME }}
29+ ORG_GRADLE_PROJECT_ossrhPassword : ${{ secrets.OSSRH_PASSWORD }}
30+ ORG_GRADLE_PROJECT_signingKey : ${{ secrets.GPG_PRIVATE_KEY_ARMOR }}
31+ ORG_GRADLE_PROJECT_signingPassword : ${{ secrets.GPG_PRIVATE_KEY_PASSWORD }}
32+ RUBYGEMS_API_KEY : " ${{secrets.RUBYGEMS_API_KEY}}"
You can’t perform that action at this time.
0 commit comments