Skip to content

Commit c1fbddc

Browse files
committed
add a release pipeline
1 parent 402a07d commit c1fbddc

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/release.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+*'
7+
8+
jobs:
9+
build:
10+
name: Build and Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v4
21+
with:
22+
java-version: '11'
23+
distribution: 'temurin'
24+
cache: 'maven'
25+
26+
- name: Build with Maven
27+
run: mvn clean package -DskipTests
28+
29+
- name: Create Release
30+
id: create_release
31+
uses: softprops/action-gh-release@v2
32+
with:
33+
draft: true
34+
files: |
35+
tda/target/tda-*.jar
36+
visualvm-lib-component/target/*.nbm
37+
visualvm-logfile-component/target/*.nbm
38+
visualvm-module/target/*.nbm
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)