Skip to content

Commit

Permalink
Merge pull request #2 from SamYuan1990/main
Browse files Browse the repository at this point in the history
CI: release bcc deb (#1)
  • Loading branch information
SamYuan1990 authored Nov 26, 2022
2 parents 6bc264e + 46d25df commit f94ab97
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/publish_bcc_deb.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Unit test

on:
workflow_dispatch:
pull_request:
push:
branches: [ main ]
Expand Down Expand Up @@ -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

0 comments on commit f94ab97

Please sign in to comment.