mirror of
https://github.com/eosswedenorg/eosio-keygen-extras
synced 2026-06-18 05:20:01 +02:00
.github/workflows/package.yml: Support creating release with multiple deb files.
This commit is contained in:
parent
daa5bf5b35
commit
e3895ef324
1 changed files with 10 additions and 13 deletions
23
.github/workflows/package.yml
vendored
23
.github/workflows/package.yml
vendored
|
|
@ -1,8 +1,9 @@
|
|||
name: Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [ created ]
|
||||
push:
|
||||
tags:
|
||||
- "v*.*.*"
|
||||
|
||||
jobs:
|
||||
# Debian package
|
||||
|
|
@ -19,16 +20,12 @@ jobs:
|
|||
id: package
|
||||
run: |
|
||||
cmake --build build --target package
|
||||
FILE=$(ls build/*.deb | head -1)
|
||||
echo "::set-output name=filename::$FILE"
|
||||
echo "::set-output name=name::$(basename $FILE)"
|
||||
echo 'ASSETS<<EOF' >> $GITHUB_OUTPUT
|
||||
/bin/ls -1 build/*.deb >> $GITHUB_OUTPUT
|
||||
echo 'EOF' >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Upload
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
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
|
||||
files: ${{ steps.package.outputs.ASSETS }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue