Skip to content

Commit 57ea7b8

Browse files
committed
Added release.yml build
1 parent ca477c4 commit 57ea7b8

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/release.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build and deploy release
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
defaults:
8+
run:
9+
shell: bash
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
services:
17+
oracle:
18+
image: gvenzl/oracle-xe:21-slim
19+
env:
20+
ORACLE_PASSWORD: oracle
21+
ports:
22+
- 1521:1521
23+
options: >-
24+
--health-cmd healthcheck.sh
25+
--health-interval 10s
26+
--health-timeout 5s
27+
--health-retries 10
28+
29+
steps:
30+
- uses: actions/checkout@v2
31+
with:
32+
fetch-depth: 0
33+
34+
- name: Install utPLSQL
35+
run: sh ${{ github.workspace }}/scripts/1_install_utplsql.sh
36+
37+
- name: Install demo project
38+
run: sh ${{ github.workspace }}/scripts/2_install_demo_project.sh
39+
40+
- name: Set up JDK 11
41+
uses: actions/setup-java@v2
42+
with:
43+
java-version: '11'
44+
distribution: 'adopt'
45+
server-id: ossrh
46+
server-username: MAVEN_USERNAME
47+
server-password: MAVEN_PASSWORD
48+
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
49+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
50+
51+
- name: Cache local Maven repository
52+
uses: actions/cache@v2
53+
with:
54+
path: ~/.m2/repository
55+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
56+
restore-keys: |
57+
${{ runner.os }}-maven-
58+
59+
- name: Maven deploy snapshot
60+
run: mvn clean deploy -Prelease
61+
env:
62+
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
63+
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
64+
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
65+
66+
- name: Publish unit test results
67+
uses: EnricoMi/publish-unit-test-result-action@v1.24
68+
if: always()
69+
with:
70+
files: target/**/TEST**.xml

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy