1
0
Fork 0
mirror of https://github.com/eosswedenorg/eth-healthcheck synced 2026-06-16 05:04:55 +02:00

Adding .github/workflows/package.yml

This commit is contained in:
Henrik Hautakoski 2021-08-13 14:39:06 +02:00
parent 2526ad78f8
commit 7d1655b901

36
.github/workflows/package.yml vendored Normal file
View file

@ -0,0 +1,36 @@
name: Package
on:
release:
types: [ created ]
jobs:
# Debian package for ubuntu.
ubuntu:
strategy:
matrix:
os: [ ubuntu-18.04, ubuntu-20.04 ]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v1
- name: build
run: ./compile.sh
- name: Package
id: package
run: |
make package_deb
FILE=$(ls build/*.deb | head -1)
echo "::set-output name=filename::$FILE"
echo "::set-output name=name::$(basename $FILE)"
- name: Upload
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: ${{ steps.package.outputs.name }}
asset_path: ${{ steps.package.outputs.filename }}
asset_content_type: application/x-deb