Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 114890f

Browse files
committed
1 parent 7d846a1 commit 114890f

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/build.yml

+26-1
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,33 @@ 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+
env:
119+
PACKAGECLOUD_TOKEN: ${{secrets.PACKAGECLOUD_TOKEN}}
120+
run: ./gradlew uploadArchives
121+
97122
slack-workflow-status:
98123
if: always()
99124
name: Post Workflow Status To Slack
100-
needs: [ build ]
125+
needs: [ build, deploy ]
101126
runs-on: ubuntu-latest
102127
steps:
103128
- name: Slack Workflow Notification

0 commit comments

Comments
 (0)