Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This GitHub action can publish assets for release when a tag is created.
# Currently, it's setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).

name: release
on:
push:
tags:
- 'v*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2.4.0

- name: Set up Apache Maven Central
uses: actions/setup-java@v1
with: # running setup-java again overwrites the settings.xml
java-version: 1.8
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
gpg-private-key: ${{ secrets.PUBLISH_SIGNING_KEY }} # Value of the GPG private key to import
gpg-passphrase: GPG_PRIVATE_KEY_PASSPHRASE

- name: Run tests
run: make test
shell: bash

- name: Build and Publish package
run: make deploy
shell: bash
env:
MAVEN_USERNAME: ${{ secrets.PUBLISH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.PUBLISH_PASSWORD }}
GPG_PRIVATE_KEY_PASSPHRASE: ${{ secrets.PUBLISH_SIGNING_KEY_PASSPHRASE }}
24 changes: 24 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: verify

on:
pull_request:
branches: [ '*' ]
push:
branches: [ master ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.4.0

- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8

- name: Run test
run: make test
shell: bash
2 changes: 1 addition & 1 deletion MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ To release to Sonatype, make a `settings.xml` in `~/.m2` https://maven.apache.or
The following information must be provided:

* SONATYPE_USERNAME - oss.sonatype.org login for io.vinyldns
* SONATYPE_USERNAME - oss.sonatype.org password for io.vinyldns
* SONATYPE_PASSWORD - oss.sonatype.org password for io.vinyldns
* GITHUB_USERNAME - Github username that your fork is published to
* KEY_PASSPHRASE - passphrase for key F6D171DC24C6EB30FCAC1E85AEF7D1D58E3C1B9A

Expand Down
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
SHELL=bash

# Check that the required version of make is being used
REQ_MAKE_VER:=3.82
ifneq ($(REQ_MAKE_VER),$(firstword $(sort $(MAKE_VERSION) $(REQ_MAKE_VER))))
$(error The version of MAKE $(REQ_MAKE_VER) or higher is required; you are running $(MAKE_VERSION))
endif

.ONESHELL:

all: package test

.PHONY: clean
clean:
mvn clean --file pom.xml

.PHONY: test
test: clean
mvn test --file pom.xml

.PHONY: package
package: clean
mvn package --file pom.xml

.PHONY: deploy
deploy: package
mvn --batch-mode deploy --file pom.xml

50 changes: 17 additions & 33 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,25 @@
<artifactId>vinyldns-java</artifactId>
<version>0.9.4-SNAPSHOT</version>

<scm>
<connection>scm:git:ssh://git@github.com/${vinyldns-fork}/vinyldns-java.git</connection>
<developerConnection>scm:git:ssh://git@github.com/${vinyldns-fork}/vinyldns-java.git</developerConnection>
<url>http://github.com/vinyldns/vinyldns-java</url>
<tag>HEAD</tag>
<scm>
<connection>scm:git:git://github.com/vinyldns/vinyldns-java.git</connection>
<developerConnection>scm:git:ssh://github.com:vinyldns/vinyldns-java.git</developerConnection>
<url>http://github.com/vinyldns/vinyldns-java</url>
</scm>

<name>vinyldns-java</name>
<description>java client for https://vinyldns.io</description>
<url>https://vinyldns.io</url>
<developers>
<developer>
<id>pauljamescleary</id>
<name>Paul Cleary</name>
<email>pauljamescleary@gmail.com</email>
</developer>
<developer>
<id>rebstar6</id>
<name>Rebecca Star</name>
<email>rebstar6@gmail.com</email>
</developer>
<developer>
<id>nimaeskandary</id>
<name>Nima Eskandary</name>
<email>nimaesk1@gmail.com</email>
</developer>
<developer>
<id>mitruly</id>
<name>Michael Ly</name>
<email>michaeltrulyng@gmail.com</email>
</developer>
<developer>
<id>britneywright</id>
<name>Britney Wright</name>
<email>blw06g@gmail.com</email>
</developer>
</developers>

<developers>
<developer>
<name>VinylDNS Maintainers</name>
<email>vinyldns-core@googlegroups.com</email>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we have access to this email. Maybe there's a different one we can use, or else we can just remove it

<organization>VinylDNS</organization>
<organizationUrl>https://github.com/vinyldns/vinyldns-java</organizationUrl>
</developer>
</developers>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
Expand Down Expand Up @@ -327,14 +308,17 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<version>3.0.1</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>F6D171DC24C6EB30FCAC1E85AEF7D1D58E3C1B9A</keyname>
</configuration>
</execution>
</executions>
</plugin>
Expand Down