Skip to content

Commit df1f73a

Browse files
authored
ci: migrate to GitHub Actions (smooks#370)
1 parent c131c5a commit df1f73a

File tree

6 files changed

+46
-236
lines changed

6 files changed

+46
-236
lines changed

Diff for: .github/workflows/workflow.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Java CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
env:
15+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
16+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
17+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
18+
GPG_SECRET_KEYS: ${{ secrets.GPG_SECRET_KEYS }}
19+
GPG_OWNERTRUST: ${{ secrets.GPG_OWNERTRUST }}
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Set up JDK 1.8
23+
uses: actions/setup-java@v1
24+
with:
25+
java-version: 1.8
26+
- name: Build
27+
run: |
28+
mvn install -B -Dmaven.javadoc.skip=true
29+
mvn javadoc:aggregate -DreportOutputDirectory=target/site/javadoc/v\${project.version} -DdestDir=smooks -B
30+
- name: Deploy
31+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
32+
run: |
33+
echo $GPG_SECRET_KEYS | base64 --decode | gpg --import --no-tty --batch --yes
34+
echo $GPG_OWNERTRUST | base64 --decode | gpg --import-ownertrust
35+
mvn deploy --settings .mvn/settings.xml -Dgpg.skip=false -DskipTests=true -B

Diff for: .mvn/settings.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<activeByDefault>true</activeByDefault>
1919
</activation>
2020
<properties>
21-
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
21+
<gpg.executable>gpg</gpg.executable>
2222
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
2323
</properties>
2424
</profile>

Diff for: .travis.yml

-38
This file was deleted.

Diff for: deploy.sh

-3
This file was deleted.

Diff for: deploy_flow.sh

-171
This file was deleted.

Diff for: pom.xml

+10-23
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@
189189
<groupId>org.apache.maven.plugins</groupId>
190190
<artifactId>maven-javadoc-plugin</artifactId>
191191
<version>3.2.0</version>
192+
<configuration>
193+
<failOnError>false</failOnError>
194+
<failOnWarnings>false</failOnWarnings>
195+
</configuration>
192196
</plugin>
193197
<plugin>
194198
<groupId>org.apache.maven.plugins</groupId>
@@ -273,17 +277,16 @@
273277
<groupId>org.apache.maven.plugins</groupId>
274278
<artifactId>maven-dependency-plugin</artifactId>
275279
</plugin>
276-
<!--
277-
Signs Maven artifacts. This is a mandatory requirement for
278-
publishing Maven artifacts to Maven Central using the open-source
279-
Nexus repository operated by Sonatype.
280-
281-
See details for the Nexus Staging plugin below.
282-
-->
283280
<plugin>
284281
<groupId>org.apache.maven.plugins</groupId>
285282
<artifactId>maven-gpg-plugin</artifactId>
286283
<version>1.6</version>
284+
<configuration>
285+
<gpgArguments>
286+
<arg>--pinentry-mode</arg>
287+
<arg>loopback</arg>
288+
</gpgArguments>
289+
</configuration>
287290
<executions>
288291
<execution>
289292
<phase>verify</phase>
@@ -293,14 +296,6 @@
293296
</execution>
294297
</executions>
295298
</plugin>
296-
<!--
297-
Generates a JAR file containing Javadocs for the generated classes.
298-
This is a mandatory requirement for publishing Maven artifacts to
299-
Maven Central using the open-source Nexus repository operated by
300-
Sonatype.
301-
302-
See details for the Nexus Staging plugin below.
303-
-->
304299
<plugin>
305300
<groupId>org.apache.maven.plugins</groupId>
306301
<artifactId>maven-javadoc-plugin</artifactId>
@@ -312,14 +307,6 @@
312307
</execution>
313308
</executions>
314309
</plugin>
315-
<!--
316-
Generates a JAR file containing source code for the generated
317-
classes. This is a mandatory requirement for publishing Maven
318-
artifacts to Maven Central using the open-source Nexus repository
319-
operated by Sonatype.
320-
321-
See details for the Nexus Staging plugin below.
322-
-->
323310
<plugin>
324311
<groupId>org.apache.maven.plugins</groupId>
325312
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)