From d1e18ab8e252c6c4a5226a1e2c582c0ab3965e16 Mon Sep 17 00:00:00 2001 From: takeshix Date: Mon, 19 Apr 2021 11:07:28 +0200 Subject: [PATCH] Added release job for Nmap --- .github/workflows/build-nmap.yml | 25 ++++++++++++++++++++++++- package/targets/nmap/package.sh | 2 ++ 2 files changed, 26 insertions(+), 1 deletion(-) 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