forked from jcustenborder/kafka-connect-transform-xml
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (39 loc) · 1.14 KB
/
maven-build.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
40
41
42
43
44
45
46
47
name: 'verify-build'
on:
push:
tags:
- '*'
branches:
- custombuild
defaults:
run:
shell: bash
jobs:
maven:
name: 'maven-build'
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: 11
- name: Build with Maven
run: bin/mvn-deploy-github.sh
env:
GH_REPO: ${{ env.GITHUB_REPOSITORY }}
GH_DEPLOY_USERNAME: ${{ env.GITHUB_REPOSITORY_OWNER }}
GH_DEPLOY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: prepare artifact
run: |
cd target/components/packages
cp *.zip ${{ github.event.repository.name }}-${{ github.ref_name }}.zip
ls -lah
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_PATH: target/components/packages/${{ github.event.repository.name }}-${{ github.ref_name }}.zip
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}