Initial packaging (#117)
* Add initial packaging * Update Vcs URLs * Disable test * Update dh version * Switch to ubuntu-20.04 * Add d/compat * Update install * Find file * Update location * Upload to bintray * Add version * Add dep * Set vars * Drop file * Update Readme.md * Update linux-debian-packages.yml * Update linux-debian-packages.yml Co-authored-by: Simone Basso <bassosimone@gmail.com>
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
# Build a Debian package on every push or pull request
|
||||
# and publish on a test/internal archive
|
||||
name: linux-debian-packages
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: "ubuntu-20.04"
|
||||
steps:
|
||||
- uses: actions/setup-go@v1
|
||||
with:
|
||||
go-version: "1.14"
|
||||
- uses: actions/checkout@v2
|
||||
- run: ./build.sh linux
|
||||
- run: find . -name ooniprobe -type f -executable
|
||||
- run: sudo apt-get update -q
|
||||
- run: sudo apt-get build-dep -y --no-install-recommends .
|
||||
- run: |
|
||||
VER=$(./CLI/linux/amd64/ooniprobe version)
|
||||
DVER="${VER}~${GITHUB_RUN_NUMBER}"
|
||||
dch -v $DVER "test version"
|
||||
dpkg-buildpackage -us -uc -b
|
||||
find ../ -name "*.deb" -type f
|
||||
DEB="../ooniprobe-cli_${DVER}_amd64.deb"
|
||||
BT_FNAME="ooniprobe-cli_${DVER}_amd64.deb"
|
||||
curl --upload-file "${DEB}" -u "${BT_APIUSER}:${BT_APIKEY}" \
|
||||
"https://api.bintray.com/content/${BT_ORG}/${BT_REPO}/${BT_PKGNAME}/${DVER}/${BT_FNAME};deb_distribution=${DEBDIST};deb_component=main;deb_architecture=amd64;publish=1"
|
||||
env:
|
||||
DEBDIST: unstable
|
||||
BT_APIKEY: ${{ secrets.BT_APIKEY }}
|
||||
BT_APIUSER: federicoceratto
|
||||
BT_ORG: ooni
|
||||
BT_PKGNAME: ooniprobe
|
||||
BT_REPO: ooniprobe-debian
|
||||
Reference in New Issue
Block a user