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