diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46b4990..2b09c53 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,24 +19,11 @@ jobs: path: output/ubuntu/focal/agent/openappsec-focal.tar.gz - name: Create Release - id: create_release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: 0.0.0 - release_name: test release with artifact - draft: true - prerelease: false - - - 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 - + tag: v.some.tage # ${{ github.ref }} when there's a tag to the push + name: release with artifact # Release ${{ github.ref }} ${{ github.ref }} when there's a tag to the push + draft: true + artifacts: output/ubuntu/focal/agent/openappsec-focal.tar.gz