diff --git a/.github/workflows/build-nmap.yml b/.github/workflows/build-nmap.yml index d2d92c7..8ce2628 100644 --- a/.github/workflows/build-nmap.yml +++ b/.github/workflows/build-nmap.yml @@ -121,4 +121,27 @@ jobs: uses: actions/upload-artifact@v2 with: name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }} - path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }} \ No newline at end of file + path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }} + + create-release: + name: Create Nmap Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Prepare Environment + run: mkdir /data + + - name: Download Artifacts + uses: actions/download-artifact@v2 + with: + path: /data + + - name: Create Release + uses: softprops/action-gh-release@v1 + with: + files: /data/* + name: Nmap v${{ jobs.build-x86.outputs.PACKAGED_VERSION }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/package/targets/nmap/package.sh b/package/targets/nmap/package.sh index c2363a6..85ca112 100755 --- a/package/targets/nmap/package.sh +++ b/package/targets/nmap/package.sh @@ -61,3 +61,5 @@ zip -r -q "${output}/${ZIP}" . cp "${output}/${ZIP}" /packaged echo ::set-output name=PACKAGED_ZIP::${ZIP} echo ::set-output name=PACKAGED_ZIP_PATH::"/packaged/${ZIP}" + +echo ::set-output name=PACKAGED_VERSION::${version} \ No newline at end of file