Skip to content

Commit

Permalink
chore: Update Snort build workflow to upload Snort package artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
bengo237 committed Aug 26, 2024
1 parent fa4d26f commit c842894
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/package-snort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,8 @@ jobs:
chmod +x ./scripts/snort3.sh
./scripts/snort3.sh
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
tag_name: v${{ env.SNORT_VER }}
release_name: Snort v${{ env.SNORT_VER }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: /work/snort3-${SNORT_VER}/build/snort3_${SNORT_VER}_amd64.deb
asset_name: snort3_${SNORT_VER}_amd64.deb
asset_content_type: application/octet-stream
name: snort-package
path: /work/snort3-3.2.2.0/build/snort3_3.2.2.0-1_amd64.deb

0 comments on commit c842894

Please sign in to comment.