@@ -28,10 +28,14 @@ jobs:
2828 run : mv build/Notepack-package/*.deb ./file.deb ; ls -lha .
2929 - name : Create Runtime ZIP
3030 run : cd build/Notepack-package/; zip -r ../../notepack.zip Notepack/ ; cd ../..
31- # - name: Create RPM
31+ - name : Create RPM
32+ uses : eskatos/gradle-command-action@v1
33+ with :
34+ gradle-version : 6.8
35+ arguments : jpackage -PinstallerType=rpm
3236# run: gradle jpackage -PinstallerType=rpm
33- # - name: Rename RPM
34- # run: mv build/Notepack-package/*.rpm ./file.rpm ; ls -lha .
37+ - name : Rename RPM
38+ run : mv build/Notepack-package/*.rpm ./file.rpm ; ls -lha .
3539 - name : Download appimage
3640 run : wget -O appimagetool "https://github.com/AppImage/AppImageKit/releases/download/12/appimagetool-x86_64.AppImage"
3741 - name : Build appimage
@@ -57,15 +61,15 @@ jobs:
5761 asset_name : notepack-${{ github.event.release.tag_name }}-1_amd64.deb
5862 asset_content_type : application/octet-stream
5963
60- # - name: Upload RPM
61- # uses: actions/upload-release-asset@v1
62- # env:
63- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64- # with:
65- # upload_url: ${{ github.event.release.upload_url }}
66- # asset_path: ./file.rpm
67- # asset_name: notepack-${{ github.event.release.tag_name }}_amd64.rpm
68- # asset_content_type: application/octet-stream
64+ - name : Upload RPM
65+ uses : actions/upload-release-asset@v1
66+ env :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ with :
69+ upload_url : ${{ github.event.release.upload_url }}
70+ asset_path : ./file.rpm
71+ asset_name : notepack-${{ github.event.release.tag_name }}_amd64.rpm
72+ asset_content_type : application/octet-stream
6973
7074 - name : Upload Linux Runtime
7175 uses : actions/upload-release-asset@v1
@@ -77,43 +81,46 @@ jobs:
7781 asset_name : notepack-${{ github.event.release.tag_name }}-linux-runtime.zip
7882 asset_content_type : application/octet-stream
7983
80- #
81- # build-windows:
82- #
83- # runs-on: windows-latest
84- #
85- # steps:
86- #
87- # - uses: actions/checkout@v2
88- # - name: Set up JDK 14
89- # uses: actions/setup-java@v1
90- # with:
91- # java-version: 14
92- # - name: Create MSI
84+
85+ build-windows :
86+
87+ runs-on : windows-latest
88+
89+ steps :
90+
91+ - uses : actions/checkout@v2
92+ - name : Set up JDK 14
93+ uses : actions/setup-java@v1
94+ with :
95+ java-version : 14
96+ - name : Create MSI
97+ uses : eskatos/gradle-command-action@v1
98+ with :
99+ gradle-version : 6.8
100+ arguments : jpackage -PinstallerType=msi
93101# run: gradle jpackage -PinstallerType=msi
94- # - name: Rename MSI
95- # run: ls build/Notepack-package ; mv build/Notepack-package/*.msi ./file.msi
96- #
97- # - name: Create zip runtime
98- # run: cd build/Notepack-package/; 7z a ../../notepack.zip Notepack/ ; cd ../..
99- #
100- # - name: Upload Windows Runtime
101- # uses: actions/upload-release-asset@v1
102- # env:
103- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
104- # with:
105- # upload_url: ${{ github.event.release.upload_url }}
106- # asset_path: ./notepack.zip
107- # asset_name: notepack-${{ github.event.release.tag_name }}-windows-runtime.zip
108- # asset_content_type: application/octet-stream
109- #
110- # - name: Upload Windows Msi
111- # uses: actions/upload-release-asset@v1
112- # env:
113- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114- # with:
115- # upload_url: ${{ github.event.release.upload_url }}
116- # asset_path: ./file.msi
117- # asset_name: notepack-${{ github.event.release.tag_name }}-windows-installer.msi
118- # asset_content_type: application/octet-stream
119- #
102+ - name : Rename MSI
103+ run : ls build/Notepack-package ; mv build/Notepack-package/*.msi ./file.msi
104+
105+ - name : Create zip runtime
106+ run : cd build/Notepack-package/; 7z a ../../notepack.zip Notepack/ ; cd ../..
107+
108+ - name : Upload Windows Runtime
109+ uses : actions/upload-release-asset@v1
110+ env :
111+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112+ with :
113+ upload_url : ${{ github.event.release.upload_url }}
114+ asset_path : ./notepack.zip
115+ asset_name : notepack-${{ github.event.release.tag_name }}-windows-runtime.zip
116+ asset_content_type : application/octet-stream
117+
118+ - name : Upload Windows Msi
119+ uses : actions/upload-release-asset@v1
120+ env :
121+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
122+ with :
123+ upload_url : ${{ github.event.release.upload_url }}
124+ asset_path : ./file.msi
125+ asset_name : notepack-${{ github.event.release.tag_name }}-windows-installer.msi
126+ asset_content_type : application/octet-stream
0 commit comments