2021-05-31 05:47:54 +08:00
|
|
|
name: Create packages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- '*'
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
package:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os_dist:
|
|
|
|
- os: debian
|
|
|
|
dist: buster
|
2021-08-04 01:21:17 +08:00
|
|
|
- os: debian
|
|
|
|
dist: bullseye
|
2021-05-31 05:47:54 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
- name: Run packpack
|
|
|
|
env:
|
|
|
|
SMPFLAGS: -j4
|
|
|
|
OS: ${{ matrix.os_dist.os }}
|
|
|
|
DIST: ${{ matrix.os_dist.dist }}
|
|
|
|
DOCKER_REPO: iconzm/packpack
|
|
|
|
run: utils/packpack/startpackpack.sh
|
2022-02-01 00:01:51 +08:00
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
uses: nogsantos/scp-deploy@master
|
|
|
|
with:
|
|
|
|
src: ./build/*.{deb,dsc,tar.xz,buildinfo,changes}
|
|
|
|
host: ${{ secrets.ZMREPO_HOST }}
|
|
|
|
remote: debian/master/mini-dinstall/incoming/
|
|
|
|
port: ${{ secrets.ZMREPO_SSH_PORT }}
|
|
|
|
user: ${{ secrets.ZMREPO_SSH_USER }}
|
|
|
|
key: ${{ secrets.ZMREPO_SSH_KEY }}
|