Skip to content

Commit

Permalink
build: fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Nov 11, 2024
1 parent 58c36de commit d0302a8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ jobs:
- name: Set up JDK
uses: oracle-actions/setup-java@v1
with:
release: 21
release: 23

- name: Set jadx version
uses: actions/github-script@v7
with:
script: |
const jadxVersion = github.event.release.tag_name
const jadxVersion = context.ref.split('/').pop()
core.exportVariable('JADX_VERSION', jadxVersion);
- name: Setup Gradle
Expand All @@ -35,9 +35,10 @@ jobs:
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: 14
retention-days: 1

release:
needs: build-release-win-bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -52,7 +53,7 @@ jobs:
uses: actions/github-script@v7
with:
script: |
const jadxVersion = github.event.release.tag_name
const jadxVersion = context.ref.split('/').pop()
const releaseName = jadxVersion.substring(1)
core.exportVariable('JADX_VERSION', jadxVersion);
Expand All @@ -75,7 +76,7 @@ jobs:
- name: Release
uses: softprops/action-gh-release@v2
with:
name: ${{ env.JADX_RELEASE_NAME) }}
name: ${{ env.JADX_RELEASE_NAME }}
draft: true
files: |
${{ format('build/jadx-{0}.zip', env.JADX_VERSION) }}
Expand Down

0 comments on commit d0302a8

Please sign in to comment.