Skip to content

Commit

Permalink
chore: Update Snort build workflow to include package creation and ar…
Browse files Browse the repository at this point in the history
…tifact upload
  • Loading branch information
bengo237 committed Aug 26, 2024
1 parent bb9bbee commit 2071f50
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/package-snort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 2071f50

Please sign in to comment.