1
0
Fork 0
mirror of https://github.com/eosswedenorg/eosio-keygen-extras synced 2026-06-16 05:04:54 +02:00
eosio-keygen-extras/.github/workflows/package.yml

53 lines
1.3 KiB
YAML

name: Package
on:
push:
tags:
- "v*.*.*"
jobs:
# Debian package
ubuntu:
name: Package (Debian)
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 }}
windows:
name: Package (Windows)
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Configure
run: cmake --no-warn-unused-cli -G Ninja -B build -DCPACK_GENERATOR=NSIS -DCMAKE_BUILD_TYPE=Release .
- name: Package
id: package
shell: bash
run: |
cmake --build build --target package
echo ASSET=$(ls -1 build/*.exe) >> $GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ${{ steps.package.outputs.ASSET }}