VIVO-1960: GitHub Actions Continued (#218)
* add build workflow * remove travis * remove unnecessary vitro cache * update readme badge * run tests during CI build * build CI use java 11 * add repositories to distribution management * deploy from main branch and update readme Follow-on to: https://jira.lyrasis.org/browse/VIVO-1960
This commit is contained in:
parent
6dbc31cc9d
commit
f97972e5aa
5 changed files with 53 additions and 14 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
@ -25,7 +25,7 @@ jobs:
|
|||
- name: Setup Java
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 1.8
|
||||
java-version: 11
|
||||
|
||||
- name: Maven Build
|
||||
run: mvn clean package -Dmaven.test.skip=false
|
||||
run: mvn clean install
|
||||
|
|
41
.github/workflows/deploy.yml
vendored
Normal file
41
.github/workflows/deploy.yml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
MAVEN_OPTS: -Xmx1024M
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Clone Vitro
|
||||
run: git clone https://github.com/vivo-project/Vitro.git ../Vitro
|
||||
|
||||
- name: Maven Cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-cache-m2-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-cache-m2-
|
||||
|
||||
- name: Setup Java
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: 11
|
||||
server-id: ossrh
|
||||
server-username: MAVEN_USERNAME
|
||||
server-password: MAVEN_PASSWORD
|
||||
|
||||
- name: Maven Deploy
|
||||
run: mvn --batch-mode deploy
|
||||
env:
|
||||
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
|
||||
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
|
|
@ -1,6 +1,6 @@
|
|||
# VIVO: Connect, Share, Discover
|
||||
|
||||
[](https://github.com/vivo-project/VIVO/actions?query=workflow%3ABuild) [](https://doi.org/10.5281/zenodo.2639713)
|
||||
[](https://github.com/vivo-project/VIVO/actions?query=workflow%3ABuild) [](https://github.com/vivo-project/VIVO/actions?query=workflow%3ADeploy) [](https://doi.org/10.5281/zenodo.2639713)
|
||||
|
||||
VIVO is an open source semantic web tool for research discovery -- finding people and the research they do.
|
||||
|
||||
|
|
|
@ -36,12 +36,6 @@
|
|||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
|
@ -65,10 +59,6 @@
|
|||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<version>2.10</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-enforcer-plugin</artifactId>
|
||||
<version>1.4.1</version>
|
||||
|
@ -185,6 +175,14 @@
|
|||
<id>vivo-installer</id>
|
||||
<url>http://vivo-project.github.io/</url>
|
||||
</site>
|
||||
<snapshotRepository>
|
||||
<id>ossrh</id>
|
||||
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
|
||||
</snapshotRepository>
|
||||
<repository>
|
||||
<id>ossrh</id>
|
||||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
|
||||
<reporting>
|
||||
|
|
Loading…
Add table
Reference in a new issue