From d8c94135800d50945bbf22d413e92bd0a9eb76fe Mon Sep 17 00:00:00 2001 From: Wu Yufei Date: Thu, 12 Nov 2020 20:36:45 +0800 Subject: [PATCH] Create packaging.yml --- .github/workflows/packaging.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/packaging.yml diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml new file mode 100644 index 0000000..f9c7171 --- /dev/null +++ b/.github/workflows/packaging.yml @@ -0,0 +1,30 @@ +# This workflow build packages for release + +name: Packaging + +# Controls when the action will run. Triggers the workflow when releases created or modified +on: + release: + types: [created, edited] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Build Packages + run: | + cd build + ./build.sh + + - name: Archive Packages + uses: actions/upload-artifact@v2 + with: + name: Release Packages + path: | + build/debain/*.deb + build/rpm/*.rpm + build/openwrt/*.opk