189e4181de
Bumps [softprops/action-gh-release](https://github.com/softprops/action-gh-release) from 2 to 3. - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2...v3) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: '3' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
93 lines
2.4 KiB
YAML
93 lines
2.4 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
# additional permissions for provided GitHub token to create new release
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-release-win-bundle:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up JDK
|
|
uses: oracle-actions/setup-java@v1
|
|
with:
|
|
release: 25
|
|
|
|
- name: Set jadx version
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const jadxVersion = context.ref.split('/').pop().substring(1)
|
|
core.exportVariable('JADX_VERSION', jadxVersion);
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v6
|
|
|
|
- name: Build
|
|
run: ./gradlew dist -PbundleJRE=true
|
|
|
|
- name: Save JRE bundle artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: ${{ format('jadx-gui-{0}-with-jre-win', env.JADX_VERSION) }}
|
|
path: ${{ format('build/distWinWithJre/jadx-gui-{0}-with-jre-win.zip', env.JADX_VERSION) }}
|
|
if-no-files-found: error
|
|
retention-days: 1
|
|
|
|
release:
|
|
needs: build-release-win-bundle
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: temurin
|
|
java-version: 25
|
|
|
|
- name: Set jadx version and release name
|
|
uses: actions/github-script@v8
|
|
with:
|
|
script: |
|
|
const jadxVersion = context.ref.split('/').pop().substring(1)
|
|
core.exportVariable('JADX_VERSION', jadxVersion);
|
|
|
|
- name: Setup Gradle
|
|
uses: gradle/actions/setup-gradle@v6
|
|
|
|
- name: Build
|
|
run: ./gradlew dist distWin
|
|
env:
|
|
JADX_BUILD_JAVA_VERSION: 11
|
|
|
|
- name: Download Windows JRE bundle
|
|
uses: actions/download-artifact@v8
|
|
with:
|
|
name: ${{ format('jadx-gui-{0}-with-jre-win', env.JADX_VERSION) }}
|
|
path: ${{ format('build/jadx-gui-{0}-with-jre-win', env.JADX_VERSION) }}
|
|
|
|
- run: |
|
|
cd build
|
|
pwd
|
|
ls -l
|
|
ls jadx-gui-*-with-jre-win
|
|
mv jadx-gui-*-with-jre-win/jadx-gui-*-with-jre-win.zip .
|
|
mv distWin/jadx-gui-*-win.zip .
|
|
ls -l *.zip
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v3
|
|
with:
|
|
name: ${{ env.JADX_VERSION }}
|
|
draft: true
|
|
fail_on_unmatched_files: true
|
|
files: build/jadx-*.zip
|