Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Work on release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb3r-Jak3 committed Oct 29, 2020
1 parent aa3ae3f commit db73554
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Upload Python Package

on:
release:
types: [created]
types: [published]

jobs:
deploy:
Expand Down
27 changes: 6 additions & 21 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,12 @@ jobs:
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: True
prerelease: false
draft: true
prerelease: true

- name: Upload Tar Asset
- name: Upload Assests Asset
id: upload-tar-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*.tar.gz
asset_name: haralyzer_3-${{ github.ref }}.tar.gz
asset_content_type: application/zip

- name: Upload Wheel Asset
id: upload-wheel-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: AButler/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: dist/*.whl
asset_name: haralyzer_3-${{ github.ref }}-py3-none-any.whl
asset_content_type: application/zip
files: "dist/*.tar.gz;dist/*.whl"
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit db73554

Please sign in to comment.