forked from LibtraceTeam/libtrace
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.07 KB
/
pkg-build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Packaging for Debian and Ubuntu
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: ${{ matrix.target }}
strategy:
fail-fast: false
matrix:
arch:
- amd64
target:
- "debian:stretch"
- "debian:buster"
- "ubuntu:xenial"
- "ubuntu:bionic"
- "ubuntu:focal"
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Install prereq packages
run: ./debpkg-setup.sh
- name: Build packages
run: ./debpkg-build.sh
- name: Store packages
run: |
export DIRNAME=`echo ${{ matrix.target }} | tr ':' '_'`
mkdir -p packages/${DIRNAME}
cp ../*.deb packages/${DIRNAME}/
- name: Publish packages to cloudsmith
uses: wanduow/action-cloudsmith-upload-packages@v1
with:
path: packages/
repo: ${{ secrets.CLOUDSMITH_OWNER }}/libtrace
username: salcock
api_key: ${{ secrets.CLOUDSMITH_API_KEY }}