Skip to content

Commit

Permalink
Switch from Travis to GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
httpdigest committed Oct 24, 2020
1 parent 9febc10 commit d99ca2c
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 66 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/build-and-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: build-and-publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Maven
run: ./mvnw -B package
- name: Release Maven package
uses: samuelmeuli/action-maven-publish@v1
with:
gpg_private_key: ${{ secrets.gpg_private_key }}
gpg_passphrase: ${{ secrets.gpg_passphrase }}
nexus_username: ${{ secrets.nexus_username }}
nexus_password: ${{ secrets.nexus_password }}
maven_args: -Durlcheck.disabled=true -Dmaven.test.skip=true
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .travis/settings.xml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/LWJGLX/lwjgl3-awt.svg?branch=master)](https://travis-ci.org/LWJGLX/lwjgl3-awt) [![Maven Central](https://img.shields.io/maven-central/v/org.lwjglx/lwjgl3-awt.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.lwjglx%22%20AND%20a:%22lwjgl3-awt%22&core=gav) [![Maven Snapshot](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.lwjglx/lwjgl3-awt.svg)](https://oss.sonatype.org/content/repositories/snapshots/org/lwjglx/lwjgl3-awt/)
[![Build-and-publish Actions Status](https://github.com/LWJGLX/lwjgl3-awt/workflows/build-and-publish/badge.svg)](https://github.com/LWJGLX/lwjgl3-awt/actions) [![Maven Central](https://img.shields.io/maven-central/v/org.lwjglx/lwjgl3-awt.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22org.lwjglx%22%20AND%20a:%22lwjgl3-awt%22&core=gav) [![Maven Snapshot](https://img.shields.io/nexus/s/https/oss.sonatype.org/org.lwjglx/lwjgl3-awt.svg)](https://oss.sonatype.org/content/repositories/snapshots/org/lwjglx/lwjgl3-awt/)

## What is it?

Expand Down
Binary file removed keys.gpg.enc
Binary file not shown.
22 changes: 12 additions & 10 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.lwjglx</groupId>
<artifactId>lwjgl3-awt</artifactId>
<version>0.1.8</version>
<version>0.1.8-SNAPSHOT</version>
<name>LWJGLX/lwjgl3-awt</name>
<description>LWJGLX/lwjgl3-awt</description>
<inceptionYear>2016</inceptionYear>
Expand Down Expand Up @@ -50,12 +50,12 @@
</properties>
<distributionManagement>
<snapshotRepository>
<id>oss.sonatype.org</id>
<id>ossrh</id>
<name>Sonatype Snapshot Repository</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>oss.sonatype.org</id>
<id>ossrh</id>
<name>Sonatype Staging Repository</name>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
Expand Down Expand Up @@ -114,12 +114,7 @@
</build>
</profile>
<profile>
<id>deployment</id>
<activation>
<property>
<name>deployment</name>
</property>
</activation>
<id>deploy</id>
<build>
<plugins>
<plugin>
Expand All @@ -132,6 +127,13 @@
<goals>
<goal>sign</goal>
</goals>
<configuration>
<!-- Prevent `gpg` from using pinentry programs -->
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
Expand All @@ -157,7 +159,7 @@
</execution>
</executions>
<configuration>
<serverId>oss.sonatype.org</serverId>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
Expand Down

0 comments on commit d99ca2c

Please sign in to comment.