-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.35 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Release
on:
push:
tags: "v*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'temurin'
cache: maven
- name: Import GPG key
run: |
openssl enc -d -aes-256-cbc -K ${{ secrets.ENCRYPTION_KEY }} -iv ${{ secrets.ENCRYPTION_IV }} -in .github/workflows/secring.asc.enc -out .github/workflows/secring.asc
gpg --import .github/workflows/secring.asc
- name: Copy Maven Settings
run: |
mkdir -p ~/.m2
cp .github/workflows/settings.xml ~/.m2/settings.xml
- name: Release to Maven Central
if: success()
run: mvn -B clean deploy --file pom.xml -DskipTests -Dsonatype.username=${{ secrets.SONATYPE_USERNAME }} -Dsonatype.password=${{ secrets.SONATYPE_PASSWORD }}
- name: Build archive
run: mvn -B package --file pom.xml -P assembly
- name: Release Plugin tar.gz Archive
uses: softprops/action-gh-release@v1
with:
files: target/singlestore-debezium-connector-*-plugin.tar.gz
- name: Release Plugin zip Archive
uses: softprops/action-gh-release@v1
with:
files: target/components/packages/singlestore-singlestore-debezium-connector-*.zip