mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-03 11:53:41 +02:00
Adding .github/workflows/package.yml
This commit is contained in:
parent
4e876b3cc2
commit
2511e7b767
1 changed files with 37 additions and 0 deletions
37
.github/workflows/package.yml
vendored
Normal file
37
.github/workflows/package.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
name: Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ created ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Debian package for ubuntu.
|
||||||
|
ubuntu:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ ubuntu-16.04, ubuntu-18.04 ]
|
||||||
|
name: ${{matrix.os}}
|
||||||
|
runs-on: ${{matrix.os}}
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v1
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: ./build.sh
|
||||||
|
|
||||||
|
- name: Package
|
||||||
|
id: package
|
||||||
|
run: |
|
||||||
|
./build/generate_deb.sh
|
||||||
|
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