-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from jaredpetersen/setup-github-actions
Set up GitHub actions
- Loading branch information
Showing
10 changed files
with
194 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Global owners | ||
* @jaredpetersen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Continuous Integration | ||
on: pull_request | ||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Cache Maven repository | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Build | ||
id: build | ||
run: mvn -B clean verify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
server-id: ossrh | ||
server-username: MAVEN_USERNAME | ||
server-password: MAVEN_PASSWORD | ||
- name: Cache Maven repository | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.m2/repository | ||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
restore-keys: | | ||
${{ runner.os }}-maven- | ||
- name: Set up GPG | ||
run: | | ||
echo "$GPG_PRIVATE_KEY" > private.asc | ||
gpg --import --batch private.asc | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
- name: Deploy | ||
id: deploy | ||
run: | | ||
mvn -B -Pdeploy -Dgpg.passphrase=${GPG_PASSWORD} clean deploy | ||
echo "::set-output name=version::$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" | ||
env: | ||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
MAVEN_USERNAME: jaredpetersen | ||
MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ steps.deploy.outputs.version }} | ||
release_name: ${{ steps.deploy.outputs.version }} | ||
draft: false | ||
prerelease: false | ||
- name: Upload Release Asset -- JAR | ||
id: upload_release_asset_jar | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.jar | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.jar | ||
asset_content_type: application/java-archive | ||
- name: Upload Release Asset -- JAR ASC | ||
id: upload_release_asset_jar_asc | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.jar.asc | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.jar.asc | ||
asset_content_type: text/plain | ||
- name: Upload Release Asset -- POM | ||
id: upload_release_asset_pom | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.pom | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.pom | ||
asset_content_type: text/xml | ||
- name: Upload Release Asset -- POM ASC | ||
id: upload_release_asset_pom_asc | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.jar.asc | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}.pom.asc | ||
asset_content_type: text/plain | ||
- name: Upload Release Asset -- Sources | ||
id: upload_release_asset_sources | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-sources.jar | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-sources.jar | ||
asset_content_type: application/java-archive | ||
- name: Upload Release Asset -- Sources ASC | ||
id: upload_release_asset_sources_asc | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-sources.jar.asc | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-sources.jar.asc | ||
asset_content_type: text/plain | ||
- name: Upload Release Asset -- JavaDoc | ||
id: upload_release_asset_javadoc | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-javadoc.jar | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-javadoc.jar | ||
asset_content_type: application/java-archive | ||
- name: Upload Release Asset -- JavaDoc ASC | ||
id: upload_release_asset_javadoc_asc | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: target/kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-javadoc.jar.asc | ||
asset_name: kafka-connect-arangodb-${{ steps.deploy.outputs.version }}-javadoc.jar.asc | ||
asset_content_type: text/plain |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.0.5] - 2020-02-02 | ||
### Changed | ||
- Switched CI to GitHub Actions | ||
|
||
## [1.0.4] - 2019-03-28 | ||
### Added | ||
- Added release section in documentation | ||
|
||
### Changed | ||
- Updated plugin versions (particularly Checkstyle) | ||
- Fixed config example | ||
|
||
## [1.0.3] - 2019-01-30 | ||
### Changed | ||
- Fixed a bug in the development docs Kafka Connect container | ||
- Fixed JAR building issues | ||
|
||
## [1.0.2] - 2019-01-27 | ||
### Added | ||
- Added Maven Central version badge to README | ||
|
||
## [1.0.1] - 2019-01-27 | ||
### Added | ||
- Initial open source release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters