mirror of
https://github.com/eosswedenorg/eosio-keygen-extras
synced 2026-07-03 11:53:43 +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
|
name: Package
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [ created ]
|
tags:
|
||||||
|
- "v*.*.*"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Debian package
|
# Debian package
|
||||||
|
|
@ -19,16 +20,12 @@ jobs:
|
||||||
id: package
|
id: package
|
||||||
run: |
|
run: |
|
||||||
cmake --build build --target package
|
cmake --build build --target package
|
||||||
FILE=$(ls build/*.deb | head -1)
|
echo 'ASSETS<<EOF' >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=filename::$FILE"
|
/bin/ls -1 build/*.deb >> $GITHUB_OUTPUT
|
||||||
echo "::set-output name=name::$(basename $FILE)"
|
echo 'EOF' >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload
|
- name: Release
|
||||||
uses: actions/upload-release-asset@v1
|
uses: softprops/action-gh-release@v1
|
||||||
env:
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
files: ${{ steps.package.outputs.ASSETS }}
|
||||||
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