Skip to content

Commit

Permalink
Build release zip
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio committed Jun 21, 2023
1 parent 0d9a167 commit 7d0912e
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,14 +141,22 @@ jobs:
if: matrix.goos == 'windows'
run: mv wafefficacy-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }} wafefficacy-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }}.exe

- name: Build release zip
run: |
mkdir wafefficacy-release/
mv -v ./wafefficacy-${{ matrix.goos }}-* wafefficacy-release/
cp -v LICENSE *.md run.sh score.py wafefficacy-release/
cp -vr nuclei/ wafefficacy-release/nuclei/
zip wafefficacy-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }}${{ matrix.gomips }}.zip
- name: Upload files to Artifacts
uses: actions/upload-artifact@v3
with:
name: wafefficacy-${{ matrix.goos }}-${{ matrix.goarch }}${{ matrix.goarm }}${{ matrix.gomips }}
path: ./wafefficacy-*
path: ./wafefficacy-*.zip

- name: Release builds on tag
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./wafefficacy-${{ matrix.goos }}-*
files: ./wafefficacy-*.zip

0 comments on commit 7d0912e

Please sign in to comment.