From 46d25dff3454e09af5632bfe9f5d9278ebe8ccd1 Mon Sep 17 00:00:00 2001 From: Sam Yuan Date: Thu, 24 Nov 2022 20:17:44 +0800 Subject: [PATCH] CI: release bcc deb (#1) CI: release bcc deb Signed-off-by: Sam Yuan --- .github/workflows/publish_bcc_deb.yml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish_bcc_deb.yml b/.github/workflows/publish_bcc_deb.yml index 8a464fe..3b05921 100644 --- a/.github/workflows/publish_bcc_deb.yml +++ b/.github/workflows/publish_bcc_deb.yml @@ -1,6 +1,7 @@ name: Unit test on: + workflow_dispatch: pull_request: push: branches: [ main ] @@ -38,10 +39,17 @@ jobs: sudo /usr/lib/pbuilder/pbuilder-satisfydepends sudo ./scripts/build-deb.sh sudo tar czvf /tmp/bcc_${BCC_TAG}.tar.gz *.deb - - name: upload bcc deb artifact - uses: actions/upload-artifact@v2 - env: - GITHUB_TOKEN: ${{ github.token }} + #- name: upload bcc deb artifact + # uses: actions/upload-artifact@v2 + # env: + # GITHUB_TOKEN: ${{ github.token }} + # with: + # name: bcc.linux-amd64.tar.gz + # path: /tmp/bcc_*.tar.gz + - if: startsWith(github.event.ref, 'refs/tags/') + name: Release + uses: softprops/action-gh-release@master with: - name: bcc.linux-amd64.tar.gz - path: /tmp/bcc_*.tar.gz + files: | + bcc.linux-amd64.tar.gz + /tmp/bcc_*.tar.gz