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