3535 # for Windows using the --win-* flags only if you have the right cross-toolchain set up.
3636 # Typically, you'd run this step on Windows if you want an actual .exe.
3737 # For demonstration, here's how you'd do it on a Windows runner:
38- if : runner.os == 'Windows'
38+ # if: runner.os == 'Windows'
3939 run : |
4040 jpackage ^
4141 --type exe ^
@@ -46,25 +46,16 @@ jobs:
4646 --java-options "-Xmx512m" ^
4747 --win-console
4848
49- - name : Create Release
50- id : create_release
51- uses : actions/create-release@v1
49+ - name : Release
50+ uses : softprops/action-gh-release@v2
5251 with :
5352 tag_name : ${{ github.ref_name }}
54- release_name : " Release ${{ github.ref_name }}"
55- body : " Automated release "
53+ name : " Release ${{ github.ref_name }}"
54+ body : " CI Build Release "
5655 draft : false
5756 prerelease : false
58- env :
59- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
60-
61- - name : Upload JAR to Release
62- uses : actions/upload-release-asset@v1
63- with :
64- upload_url : ${{ steps.create_release.outputs.upload_url }}
65- asset_path : build/libs/worldlinkd.jar
66- asset_name : worldlinkd.jar
67- asset_content_type : application/java-archive
57+ files : build/libs/worldlinkd.jar
58+ token : ${{ secrets.CUSTOM_GITHUB_TOKEN }}
6859
6960 - name : Upload EXE to Release
7061 if : runner.os == 'Windows'
0 commit comments