Skip to content

Commit

Permalink
Merge pull request #6 from klarna-incubator/deploy-package
Browse files Browse the repository at this point in the history
Update main.yml
  • Loading branch information
nirtsruya authored Oct 20, 2020
2 parents a3e90e2 + e6d4dc7 commit 621f32f
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ jobs:
java-version: 1.8
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Deploy package
env:
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: github.ref == 'refs/heads/master'
run: mvn --settings settings.xml --file pom.xml deploy
11 changes: 10 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,26 @@

<groupId>com.klarna</groupId>
<artifactId>flink-connector-jdbc-1.8</artifactId>
<version>1.0</version>
<version>1.1</version>

<packaging>jar</packaging>

<properties>
<github.global.server>github</github.global.server>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<scala.binary.version>2.12</scala.binary.version>
<flink.version>1.8.2</flink.version>
</properties>

<distributionManagement>
<repository>
<id>github</id>
<name>GitHub klarna-incubator Apache Maven Packages</name>
<url>https://maven.pkg.github.com/klarna-incubator/flink-connector-jdbc-1.8</url>
</repository>
</distributionManagement>

<dependencies>
<dependency>
<groupId>org.apache.flink</groupId>
Expand Down
29 changes: 29 additions & 0 deletions settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<activeProfiles>
<activeProfile>github</activeProfile>
</activeProfiles>

<profiles>
<profile>
<id>github</id>
<repositories>
<repository>
<id>github</id>
<name>GitHub klarna-incubator Apache Maven Packages</name>
<url>https://maven.pkg.github.com/klarna-incubator</url>
</repository>
</repositories>
</profile>
</profiles>

<servers>
<server>
<id>github</id>
<username>${env.GITHUB_USERNAME}</username>
<password>${env.GITHUB_TOKEN}</password>
</server>
</servers>
</settings>

0 comments on commit 621f32f

Please sign in to comment.