From 5dbe6aa4aaaffef7b49a9c3242223ec7693724ca Mon Sep 17 00:00:00 2001 From: andrewlalis Date: Mon, 1 Jan 2024 21:09:37 -0500 Subject: [PATCH] Added steps to package and release. --- .github/workflows/run-tests.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index 4e5985b..e142c4b 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -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