File tree 1 file changed +26
-1
lines changed
1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ defaults:
14
14
15
15
jobs :
16
16
build :
17
+ name : Test on JDK ${{ matrix.jdk }} with utPLSQL ${{ matrix.utplsql_version }}
17
18
runs-on : ubuntu-latest
18
19
env :
19
20
ORACLE_VERSION : " gvenzl/oracle-xe:18.4.0-slim"
84
85
echo $JAVA_OPTS
85
86
echo $GRADLE_OPTS
86
87
echo GRADLE_HOME = ${GRADLE_HOME}
88
+ echo GITHUB_EVENT_NAME = ${GITHUB_EVENT_NAME}
87
89
88
90
- name : Install utplsql
89
91
run : .travis/install_utplsql.sh
@@ -94,10 +96,33 @@ jobs:
94
96
- name : Build and test
95
97
run : ./gradlew check
96
98
99
+ deploy :
100
+ name : Deploy snapshot
101
+ needs : [ build ]
102
+ concurrency : deploy
103
+ runs-on : ubuntu-latest
104
+ if : |
105
+ github.repository == 'utPLSQL/utPLSQL-java-api' &&
106
+ github.event_name == 'push' &&
107
+ (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/feature/github_actions')
108
+ steps :
109
+ - uses : actions/checkout@v2
110
+ with :
111
+ fetch-depth : 0
112
+ - uses : actions/setup-java@v2
113
+ with :
114
+ distribution : ' adopt'
115
+ java-version : ' 8'
116
+ cache : ' gradle'
117
+ - name : Upload archives
118
+ env :
119
+ PACKAGECLOUD_TOKEN : ${{secrets.PACKAGECLOUD_TOKEN}}
120
+ run : ./gradlew uploadArchives
121
+
97
122
slack-workflow-status :
98
123
if : always()
99
124
name : Post Workflow Status To Slack
100
- needs : [ build ]
125
+ needs : [ build, deploy ]
101
126
runs-on : ubuntu-latest
102
127
steps :
103
128
- name : Slack Workflow Notification
You can’t perform that action at this time.
0 commit comments