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:
parent
2526ad78f8
commit
7d1655b901
1 changed files with 36 additions and 0 deletions
36
.github/workflows/package.yml
vendored
Normal file
36
.github/workflows/package.yml
vendored
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue