2021-05-31 05:47:54 +08:00
|
|
|
name: Create packages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2022-02-04 01:06:00 +08:00
|
|
|
branches: [ master ]
|
2021-05-31 05:47:54 +08:00
|
|
|
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:
|
2022-02-02 05:10:46 +08:00
|
|
|
fetch-depth: '0'
|
2021-05-31 05:47:54 +08:00
|
|
|
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
|
2022-02-01 00:19:36 +08:00
|
|
|
uses: easingthemes/ssh-deploy@main
|
|
|
|
env:
|
|
|
|
SSH_PRIVATE_KEY: ${{ secrets.ZMREPO_SSH_KEY }}
|
|
|
|
ARGS: "-rltgoDzvO"
|
2022-02-01 00:47:42 +08:00
|
|
|
SOURCE: build/
|
2022-02-01 00:19:36 +08:00
|
|
|
REMOTE_HOST: ${{ secrets.ZMREPO_HOST }}
|
|
|
|
REMOTE_USER: ${{ secrets.ZMREPO_SSH_USER }}
|
|
|
|
TARGET: debian/master/mini-dinstall/incoming/
|