Skip to content

Commit

Permalink
Split flows
Browse files Browse the repository at this point in the history
  • Loading branch information
oryanmoshe committed Apr 20, 2020
1 parent 157ed61 commit 58dcafc
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 20 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: GitHub Package
on:
push:
tags:
- "v*"
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 13
- name: Run Maven tests
run: mvn test

deploy:
name: Deploy to GitHub Packages
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 13

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }}
20 changes: 2 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release Maven Package
name: GitHub Release

on:
push:
Expand Down Expand Up @@ -36,22 +36,6 @@ jobs:
name: build-artifact
path: ./target

deploy:
name: Deploy to GitHub Packages
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
- name: Set up Java
uses: actions/setup-java@v1
with:
java-version: 13

- name: Publish to GitHub Packages Apache Maven
run: mvn deploy
env:
GITHUB_TOKEN: ${{ github.token }}

release:
name: Create GitHub Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -81,6 +65,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./build-artifact/target/TimestampConverter-${{ env.VERSION }}-SNAPSHOT.jar
asset_path: ./build-artifact/TimestampConverter-${{ env.VERSION }}-SNAPSHOT.jar
asset_name: TimestampConverter-${{ env.VERSION }}-SNAPSHOT.jar
asset_content_type: application/java-archive
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![](https://github.com/oryanmoshe/debezium-timestamp-converter/workflows/Release%20Maven%20Package/badge.svg) ![](https://github.com/oryanmoshe/debezium-timestamp-converter/workflows/Run%20Tests/badge.svg)
![](https://github.com/oryanmoshe/debezium-timestamp-converter/workflows/Run%20Tests/badge.svg) ![](https://github.com/oryanmoshe/debezium-timestamp-converter/workflows/GitHub%20Release/badge.svg) ![](https://github.com/oryanmoshe/debezium-timestamp-converter/workflows/GitHub%20Package/badge.svg)
# Debezium Timestamp Converter
This is a custom converter to use with debezium (using their SPI, introduced in version 1.1)
You can use it to convert all temporal data types (in all databases) into a specified format you choose.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.rivery.kafka.connect.util</groupId>
<artifactId>TimestampConverter</artifactId>
<packaging>jar</packaging>
<version>1.0.7-SNAPSHOT</version>
<version>1.0.8-SNAPSHOT</version>
<name>TimestampConverter</name>
<url>http://maven.apache.org</url>

Expand Down

0 comments on commit 58dcafc

Please sign in to comment.