diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e0353de3..6427d5da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -110,6 +110,16 @@ jobs: run: cmake --build . -j2 working-directory: ${{github.workspace}}/build + - name: Create DEB package (Ubuntu) + if: runner.os == 'Linux' + run: cpack -G DEB + working-directory: ${{github.workspace}}/build + + - name: Create RPM package (Ubuntu) + if: runner.os == 'Linux' + run: cpack -G RPM + working-directory: ${{github.workspace}}/build + - name: Create NSIS installer (Windows) if: runner.os == 'Windows' run: cpack -G NSIS @@ -120,6 +130,22 @@ jobs: run: cpack -G DragNDrop working-directory: ${{github.workspace}}/build + - name: Upload DEB package (Ubuntu) + if: runner.os == 'Linux' + uses: actions/upload-artifact@v2 + with: + name: DEB package + path: ${{github.workspace}}/build/tagainijisho-*.deb + retention-days: 7 + + - name: Upload RPM package (Ubuntu) + if: runner.os == 'Linux' + uses: actions/upload-artifact@v2 + with: + name: RPM package + path: ${{github.workspace}}/build/tagainijisho-*.rpm + retention-days: 7 + - name: Upload NSIS installer (Windows) if: runner.os == 'Windows' uses: actions/upload-artifact@v2 @@ -147,6 +173,12 @@ jobs: - uses: actions/download-artifact@v2 with: name: Source package + - uses: actions/download-artifact@v2 + with: + name: DEB package + - uses: actions/download-artifact@v2 + with: + name: RPM package - uses: actions/download-artifact@v2 with: name: Windows installer @@ -158,5 +190,7 @@ jobs: with: files: | tagainijisho-*.tar.gz + tagainijisho-*.deb + tagainijisho-*.rpm tagainijisho-*.exe Tagaini Jisho-*.dmg