🏁 REL v2.4.4 Preparation #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 17 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 |