Added release job for Nmap
This commit is contained in:
parent
17c9e910c8
commit
d1e18ab8e2
2 changed files with 26 additions and 1 deletions
25
.github/workflows/build-nmap.yml
vendored
25
.github/workflows/build-nmap.yml
vendored
|
@ -121,4 +121,27 @@ jobs:
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
|
name: ${{ steps.package_nmap.outputs.PACKAGED_ZIP }}
|
||||||
path: ${{ steps.package_nmap.outputs.PACKAGED_ZIP_PATH }}
|
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 }}
|
|
@ -61,3 +61,5 @@ zip -r -q "${output}/${ZIP}" .
|
||||||
cp "${output}/${ZIP}" /packaged
|
cp "${output}/${ZIP}" /packaged
|
||||||
echo ::set-output name=PACKAGED_ZIP::${ZIP}
|
echo ::set-output name=PACKAGED_ZIP::${ZIP}
|
||||||
echo ::set-output name=PACKAGED_ZIP_PATH::"/packaged/${ZIP}"
|
echo ::set-output name=PACKAGED_ZIP_PATH::"/packaged/${ZIP}"
|
||||||
|
|
||||||
|
echo ::set-output name=PACKAGED_VERSION::${version}
|
Loading…
Reference in a new issue