Skip to content

Commit c961ef6

Browse files
committed
Replaces Travis by GitHub Action
- Auto deploy to Maven Central whan a tag is pushed Signed-off-by: Manoel Campos <[email protected]>
1 parent 75d0b54 commit c961ef6

File tree

5 files changed

+57
-5
lines changed

5 files changed

+57
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Publish package to the Maven Central Repository
2+
on:
3+
push:
4+
tags:
5+
- 'v*.*.*'
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Set up Maven Central Repository
12+
uses: actions/setup-java@v2
13+
with:
14+
java-version: '8'
15+
distribution: 'adopt'
16+
server-id: ossrh
17+
server-username: MAVEN_USERNAME
18+
server-password: MAVEN_PASSWORD
19+
- id: install-secret-key
20+
name: Install gpg secret key
21+
run: cat <(echo -e "${{ secrets.OSSRH_GPG_SECRET_KEY }}") | gpg --batch --import
22+
- name: Publish package
23+
run: mvn --no-transfer-progress -Dgpg.passphrase=${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }} --batch-mode -Psonatype deploy
24+
env:
25+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
26+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}

.github/workflows/maven.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Maven Build
2+
on:
3+
push:
4+
branches: [ master, main ]
5+
pull_request:
6+
branches: [ master, main ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
matrix:
13+
java: [ '8', '15' ]
14+
name: Java ${{ matrix.Java }} Build
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Setup Java
18+
uses: actions/setup-java@v2
19+
with:
20+
distribution: 'adopt'
21+
java-version: ${{ matrix.java }}
22+
- run: mvn clean verify -B -V

.travis.yml

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CloudSim Plus Automation: Human-Readable Scenario Specification Tool for Automated Creation of Simulations on CloudSim and CloudSim Plus <a href="https://buymeacoff.ee/manoelcampos" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 30px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
22

3-
[![Build Status](https://travis-ci.org/manoelcampos/cloudsim-plus-automation.png?branch=master)](https://travis-ci.org/manoelcampos/cloudsim-plus-automation) [![Maven Central](https://img.shields.io/maven-central/v/org.cloudsimplus/cloudsim-plus-automation.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.cloudsimplus%22%20AND%20a:%22cloudsim-plus-automation%22) [![Javadocs](https://www.javadoc.io/badge/org.cloudsimplus/cloudsim-plus-automation.svg)](https://www.javadoc.io/doc/org.cloudsimplus/cloudsim-plus-automation) [![GPL licensed](https://img.shields.io/badge/license-GPL-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
3+
[![Build Status](https://github.com/manoelcampos/cloudsim-plus-automation/actions/workflows/maven.yml/badge.svg)](https://github.com/manoelcampos/cloudsim-plus-automation/actions/workflows/maven.yml) [![Maven Central](https://img.shields.io/maven-central/v/org.cloudsimplus/cloudsim-plus-automation.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.cloudsimplus%22%20AND%20a:%22cloudsim-plus-automation%22) [![Javadocs](https://www.javadoc.io/badge/org.cloudsimplus/cloudsim-plus-automation.svg)](https://www.javadoc.io/doc/org.cloudsimplus/cloudsim-plus-automation) [![GPL licensed](https://img.shields.io/badge/license-GPL-blue.svg)](http://www.gnu.org/licenses/gpl-3.0)
44

55

66
**CloudSim Plus Automation** is a Java command line tool based on [CloudSim Plus](http://cloudsimplus.org)

pom.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@
104104
<goals>
105105
<goal>sign</goal>
106106
</goals>
107+
<configuration>
108+
<!-- Prevent `gpg` from using pinentry programs
109+
and avoid "gpg: signing failed: Inappropriate ioctl for device" error. -->
110+
<gpgArguments>
111+
<arg>--pinentry-mode</arg>
112+
<arg>loopback</arg>
113+
</gpgArguments>
114+
</configuration>
107115
</execution>
108116
</executions>
109117
</plugin>

0 commit comments

Comments
 (0)