Skip to content

Commit 3ad70fb

Browse files
committed
1 parent 7d846a1 commit 3ad70fb

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ defaults:
1414

1515
jobs:
1616
build:
17+
name: Test on JDK ${{ matrix.jdk }} with utPLSQL ${{ matrix.utplsql_version }}
1718
runs-on: ubuntu-latest
1819
env:
1920
ORACLE_VERSION: "gvenzl/oracle-xe:18.4.0-slim"
@@ -84,6 +85,7 @@ jobs:
8485
echo $JAVA_OPTS
8586
echo $GRADLE_OPTS
8687
echo GRADLE_HOME = ${GRADLE_HOME}
88+
echo GITHUB_EVENT_NAME = ${GITHUB_EVENT_NAME}
8789
8890
- name: Install utplsql
8991
run: .travis/install_utplsql.sh
@@ -94,10 +96,31 @@ jobs:
9496
- name: Build and test
9597
run: ./gradlew check
9698

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+
run: ./gradlew uploadArchives
119+
97120
slack-workflow-status:
98121
if: always()
99122
name: Post Workflow Status To Slack
100-
needs: [ build ]
123+
needs: [ build, deploy ]
101124
runs-on: ubuntu-latest
102125
steps:
103126
- name: Slack Workflow Notification

0 commit comments

Comments
 (0)