From 2071f50bdc22167e8724b8c6f391cd0b15a9f9d2 Mon Sep 17 00:00:00 2001 From: Dylane Bengono Date: Mon, 26 Aug 2024 12:12:25 +0100 Subject: [PATCH] chore: Update Snort build workflow to include package creation and artifact upload --- .github/workflows/package-snort.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package-snort.yml b/.github/workflows/package-snort.yml index 54ccd80..bd06c68 100644 --- a/.github/workflows/package-snort.yml +++ b/.github/workflows/package-snort.yml @@ -118,4 +118,11 @@ jobs: uses: actions/upload-artifact@v2 with: name: snort3-deb - path: ./snort3_${SNORT_VER}_amd64.deb + path: /work/snort3-${SNORT_VER}/build/snort3_${SNORT_VER}_amd64.deb + + - name: Publish to GitHub Packages + run: | + curl -u ${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }} \ + -H "Content-Type: $(file -b --mime-type /work/snort3-${SNORT_VER}/build/snort3_${SNORT_VER}_amd64.deb)" \ + --data-binary @/work/snort3-${SNORT_VER}/build/snort3_${SNORT_VER}_amd64.deb \ + "https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/latest/assets?name=snort3_${SNORT_VER}_amd64.deb"