mirror of
https://github.com/eosswedenorg/eosio-keygen-extras
synced 2026-06-17 05:10:02 +02:00
31 lines
718 B
YAML
31 lines
718 B
YAML
name: Package
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
jobs:
|
|
# Debian package
|
|
ubuntu:
|
|
name: Package
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Configure
|
|
run: cmake -B build -DCPACK_GENERATOR=DEB -DCMAKE_BUILD_TYPE=Release .
|
|
|
|
- name: Package
|
|
id: package
|
|
run: |
|
|
cmake --build build --target package
|
|
echo 'ASSETS<<EOF' >> $GITHUB_OUTPUT
|
|
/bin/ls -1 build/*.deb >> $GITHUB_OUTPUT
|
|
echo 'EOF' >> $GITHUB_OUTPUT
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
if: startsWith(github.ref, 'refs/tags/')
|
|
with:
|
|
files: ${{ steps.package.outputs.ASSETS }}
|