Skip to content

Commit

Permalink
Update python-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zekiahmetbayar authored Sep 4, 2020
1 parent ba0ebfd commit 5cd2255
Showing 1 changed file with 26 additions and 10 deletions.
36 changes: 26 additions & 10 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,31 @@ jobs:
mv src valf-${{steps.date.outputs.date}}
dpkg-deb -Zgzip --build valf-${{steps.date.outputs.date}}
echo ::set-output name=path::$(pwd)/valf-${{steps.date.outputs.date}}.deb
echo ::set-output name=filename::valf-${{steps.date.outputs.date}}.deb
ls -la
- name: Create Release
id: create_release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{steps.date.outputs.date}}
release_name: ${{steps.date.outputs.date}}
body: |
Changes in this Release
- Print files in current directory
draft: false
prerelease: false

- name: Upload the Debian package to Release Assets
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.build_package.outputs.path }}
asset_name: ${{ steps.build_package.outputs.filename }}
asset_content_type: application/vnd.debian.binary-package

0 comments on commit 5cd2255

Please sign in to comment.