Skip to content

Commit aef345d

Browse files
committed
test for creating GH releases
1 parent 46a16e6 commit aef345d

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/release.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java CI with Maven
2+
3+
# todo: change to trigger on tag
4+
on:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
- name: Set up JDK 11
13+
uses: actions/setup-java@v3
14+
with:
15+
java-version: '11'
16+
distribution: 'temurin'
17+
cache: maven
18+
- name: Build with Maven
19+
#we are skipping tests as tests are executed when creating a tag
20+
run: mvn -B package --file pom.xml -DskipTests
21+
- name: Create Release
22+
run: echo ${{ github.sha }} > Release.txt
23+
- name: Test
24+
run: cat Release.txt
25+
- name: Release
26+
uses: softprops/action-gh-release@v1
27+
with:
28+
files: |
29+
Release.txt
30+
connector/target/kafka-questdb-connector-*-bin.zip

.github/workflows/tag_for_release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: tag_for_release
1+
name: Tag for Release
22
on:
33
workflow_dispatch:
44

0 commit comments

Comments
 (0)