Added steps to package and release.

This commit is contained in:
Andrew Lalis 2024-01-01 21:09:37 -05:00
parent 770adab863
commit 5dbe6aa4aa
1 changed files with 11 additions and 3 deletions

View File

@ -34,6 +34,14 @@ jobs:
- name: Test with Maven
run: mvn -B verify --file pom.xml
- name: Release If Tagged Main
if: ${{ github.ref_name == 'main' }}
run: echo "Push to main!"
- name: Build Package for Release
if: ${{ github.ref_name == 'main' && startsWith(github.ref, 'refs/tags/') }}
run: ./scripts/package-linux-deb.sh
- name: Create Release
if: ${{ github.ref_name == 'main' && startsWith(github.ref, 'refs/tags/') }}
uses: softprops/action-gh-release@v1
with:
fail_on_unmatched_files: true
files: |
*.deb