mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 03:34:48 +08:00
Create packaging.yml
This commit is contained in:
parent
b446175d51
commit
d8c9413580
30
.github/workflows/packaging.yml
vendored
Normal file
30
.github/workflows/packaging.yml
vendored
Normal file
@ -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
|
||||||
Loading…
x
Reference in New Issue
Block a user