Skip to content

Commit

Permalink
github/actions: create and upload DEB/RPM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnurou committed Feb 14, 2022
1 parent a5913cd commit 394b84b
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -158,5 +190,7 @@ jobs:
with:
files: |
tagainijisho-*.tar.gz
tagainijisho-*.deb
tagainijisho-*.rpm
tagainijisho-*.exe
Tagaini Jisho-*.dmg

0 comments on commit 394b84b

Please sign in to comment.