Update build.yml

This commit is contained in:
orianelou 2023-05-10 14:44:45 +03:00 committed by GitHub
parent 97faf7edd7
commit 99fb665493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,24 +19,11 @@ jobs:
path: output/ubuntu/focal/agent/openappsec-focal.tar.gz path: output/ubuntu/focal/agent/openappsec-focal.tar.gz
- name: Create Release - name: Create Release
id: create_release uses: ncipollo/release-action@v1
uses: actions/create-release@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: 0.0.0 tag: v.some.tage # ${{ github.ref }} when there's a tag to the push
release_name: test release with artifact name: release with artifact # Release ${{ github.ref }} ${{ github.ref }} when there's a tag to the push
draft: true draft: true
prerelease: false artifacts: output/ubuntu/focal/agent/openappsec-focal.tar.gz
- name: Upload Release Asset
id: 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: output/ubuntu/focal/agent/openappsec-focal.tar.gz
asset_name: openappsec-focal.tar.gz
asset_content_type: application/x-tar