Skip to content
Merged
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
111 changes: 74 additions & 37 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
name: Maven Package

on:
release:
types: [ created ]
push:
tags:
- '*'
Expand All @@ -17,48 +15,87 @@ jobs:
packages: write

steps:

- uses: actions/checkout@v2
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v4
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASS_PHRASE }}
git-user-signingkey: true
git-commit-gpgsign: true
- name: Set up Maven

- name: version
id: version
run: echo "::set-output name=version::$(git describe --tags --abbrev=1)"
# - name: 1. Import GPG key
# id: import_gpg
# uses: crazy-max/ghaction-import-gpg@v4
# with:
# gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
# passphrase: ${{ secrets.GPG_PASS_PHRASE }}
# git-user-signingkey: true
# git-commit-gpgsign: true

- name: 2. Set up Maven
uses: stCarolas/setup-maven@v4
with:
maven-version: 3.5.4
- name: Generate settings.xml for Maven Builds
uses: whelk-io/maven-settings-xml-action@v20
with:
servers: >
[
{
"id": "ossrh",
"username": "${{ secrets.OSSRH_USERNAME }}",
"password": "${{ secrets.OSSRH_PASSWORD }}"
},
{
"id": "github",
"url": "https://maven.pkg.github.com/wgzhao/addax",
"releases": {
"enabled": "true"
},
"snapshots": {
"enabled": "false"
},
"username": "wgzhao",
"password": "${{ github.token }}"
}
]
- name: Set up JDK
maven-version: 3.6.3

# - name: 3. Generate settings.xml for Maven Builds
# uses: whelk-io/maven-settings-xml-action@v20
# with:
# servers: >
# [
# {
# "id": "ossrh",
# "username": "${{ secrets.OSSRH_USERNAME }}",
# "password": "${{ secrets.OSSRH_PASSWORD }}"
# },
# {
# "id": "github",
# "url": "https://maven.pkg.github.com/wgzhao/addax",
# "releases": {
# "enabled": "true"
# },
# "snapshots": {
# "enabled": "false"
# },
# "username": "wgzhao",
# "password": "${{ github.token }}"
# }
# ]

- name: 4. Set up JDK
uses: actions/setup-java@v2.3.1
with:
java-version: '8'
distribution: 'adopt'
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- run: mvn -B -V -T C1 -DskipTests deploy -Possrh

- name: 5. Build and packaging
run: |
mvn -B -V -T C1 -DskipTests clean package
mvn package assembly:single
bash shrink_package.sh

- name: 6. Calucate SHA256SUM
run: |
cd target/addax
sha256sum addax-${{ steps.version.outputs.version }}.tar.gz > addax-${{ steps.version.outputs.version }}.tar.gz.sha256sum.asc

- name: 7. Create release page
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ steps.version.outputs.version }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

- name: 8. Upload to GitHub
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
target/addax/addax-${{ steps.version.outputs.version }}.tar.gz
target/addax/addax-${{ steps.version.outputs.version }}.tar.gz.sha256sum.asc
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
29 changes: 0 additions & 29 deletions .github/workflows/mkdoc-latest.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/workflows/mkdoc-release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
</parent>

<artifactId>addax-common</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
</parent>

<artifactId>addax-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion lib/addax-rdbms/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion lib/addax-storage/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion lib/addax-transformer/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/cassandrareader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/clickhousereader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>clickhousereader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/datareader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>

Expand Down
4 changes: 2 additions & 2 deletions plugin/reader/dbfreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>dbfreader</artifactId>
Expand All @@ -21,7 +21,7 @@
<dependency>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-storage</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/elasticsearchreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>elasticsearchreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/excelreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>excelreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/ftpreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>ftpreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/hbase11xreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>hbase11xreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/hbase11xsqlreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>hbase11xsqlreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/hbase20xreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>
<artifactId>hbase20xreader</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion plugin/reader/hbase20xsqlreader/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>com.wgzhao.addax</groupId>
<artifactId>addax-all</artifactId>
<version>4.0.6-SNAPSHOT</version>
<version>4.0.7-SNAPSHOT</version>
<relativePath>../../../pom.xml</relativePath>
</parent>

Expand Down
Loading