-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (54 loc) · 2.01 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Release
on:
push:
tags: v*.*.*
env:
LC_ALL: en_US.UTF-8
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v3
- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v1
- name: Set up Java 21 with JavaFX
uses: actions/setup-java@v1
with:
java-version: '21'
java-package: jdk+fx
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16.x
registry-url: https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Set up Git Config
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Build Workspace using Gradle
run: ./gradlew build --max-workers=5 --parallel
- name: Build Executable JAR
run: ./gradlew :com.osgifx.console.product:export.osgifx
- name: Copy Executable JAR to Distribution Project
run: cp com.osgifx.console.product/target/distributions/executable/osgifx.jar com.osgifx.console.dist/uberjar
- name: Publish Agent API and Implementation Bundles to Maven Central
run: ./scripts/release.sh
- name: Publish OSGi.fx to npmjs Registry using jDeploy
run: npx jdeploy publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Copy Agent JAR to Current Directory
run: cp com.osgifx.console.agent/target/com.osgifx.console.agent.jar .
- name: Draft GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
body_path: changelogs/${{ github.ref_name }}.md
token: ${{ secrets.GITHUB_TOKEN }}
fail_on_unmatched_files: true
files: com.osgifx.console.agent.jar