Skip to content

Commit 0d242f2

Browse files
author
rmpestano
committed
refs #203
1 parent 9f16a0a commit 0d242f2

3 files changed

Lines changed: 37 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Admin Template build
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
runs-on: ubuntu-18.04
13+
env:
14+
user: ${{ secrets.user }}
15+
pass: ${{ secrets.pass }}
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up JDK
19+
uses: actions/setup-java@main
20+
with:
21+
distribution: 'adopt'
22+
java-version: '8'
23+
- uses: actions/cache@v2.1.7
24+
with:
25+
path: ~/.m2/repository
26+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
27+
restore-keys: |
28+
${{ runner.os }}-maven-
29+
- name: build & deploy
30+
if: "contains(github.ref, 'master')"
31+
run: mvn clean -U package deploy --settings settings.xml && mvn clean -U package deploy -Plegacy --settings settings.xml
32+
- name: build
33+
if: "!contains(github.ref, 'master')"
34+
run: mvn package

README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ____
1919
The `admin` of JSF templates!
2020
____
2121

22-
image:https://travis-ci.org/adminfaces/admin-template.svg[Build Status (Travis CI), link=https://travis-ci.org/adminfaces/admin-template]
22+
image:https://github.com/adminfaces/admin-template/actions/workflows/ci.yml/badge.svg[Build Status, link=https://github.com/adminfaces/admin-template/actions/workflows/ci.yml]
2323
image:https://img.shields.io/maven-central/v/com.github.adminfaces/admin-template.svg?label=Maven%20Central["Maven Central",link="https://search.maven.org/search?q=g:com.github.adminfaces%20AND%20a:admin-template"]
2424
image:https://badges.gitter.im/Join%20Chat.svg[link="https://gitter.im/adminfaces?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge"]
2525

settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
<servers>
1212
<server>
1313
<id>snapshots</id>
14-
<username>${env.user}</username>
15-
<password>${env.pass}</password>
14+
<username>${user}</username>
15+
<password>${pass}</password>
1616
</server>
1717
</servers>
1818
<mirrors/>

0 commit comments

Comments
 (0)