@@ -114,8 +114,8 @@ jobs:
114
114
- name : Build
115
115
uses : eskatos/gradle-command-action@v1
116
116
with :
117
- arguments : -i -S --console=plain --no-build-cache assemble
118
- # Unit tests
117
+ arguments : -i -S --console=plain --no-build-cache assemble validateTaskProperties
118
+ # Unit tests
119
119
- name : Unit tests
120
120
uses : eskatos/gradle-command-action@v1
121
121
with :
@@ -136,4 +136,43 @@ jobs:
136
136
with :
137
137
name : Test reports
138
138
path : " **/build/reports/**"
139
- retention-days : 5
139
+ retention-days : 5
140
+ publish :
141
+ runs-on : ubuntu-latest
142
+ # on:
143
+ # push:
144
+ # branches:
145
+ # - release
146
+ needs : build
147
+ if : ${{ github.repository == 'jruby-gradle/jruby-gradle-plugin' && github.ref == 'refs/heads/release' }}
148
+ steps :
149
+ - uses : actions/checkout@v1
150
+ - uses : actions/setup-java@v1
151
+ with :
152
+ java-version : 8
153
+ - name : Cache .gradle/caches
154
+ uses : actions/cache@v1
155
+ with :
156
+ path : ~/.gradle/caches
157
+ key : ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}
158
+ restore-keys : ${{ runner.os }}-gradle-cache-
159
+ - name : Cache .gradle/wrapper
160
+ uses : actions/cache@v1
161
+ with :
162
+ path : ~/.gradle/wrapper
163
+ key : ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/*.gradle') }}
164
+ restore-keys : ${{ runner.os }}-gradle-wrapper-
165
+ - name : Publish to Gradle Portal
166
+ uses : eskatos/gradle-command-action@v1
167
+ env :
168
+ PUBLISH_KEY : ${{ secrets.PUBLISH_KEY }}
169
+ PUBLISH_SECRET : ${{ secrets.PUBLISH_SECRET }}
170
+ with :
171
+ arguments : -i --console=plain --no-build-cache assemble publishPlugins -Dgradle.publish.key=$PUBLISH_KEY -Dgradle.publish.secret=$PUBLISH_SECRET
172
+ - name : Publish documentation
173
+ uses : eskatos/gradle-command-action@v1
174
+ env :
175
+ GH_PAGES_PUSH_USER : ${{ secrets.GH_PAGES_PUSH_USER }}
176
+ GH_PAGES_PUSH_TOKEN : ${{ secrets.GH_PAGES_PUSH_TOKEN }}
177
+ with :
178
+ arguments : -i --console=plain --no-build-cache docs:publishGhPages -Dorg.ajoberstar.grgit.auth.username=$GH_PAGES_PUSH_USER -Dorg.ajoberstar.grgit.auth.password=$GH_PAGES_PUSH_TOKEN -Dorg.ajoberstar.grgit.auth.force=hardcoded
0 commit comments