diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2ca14e1..02c71b3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,7 @@ name: Upload Python Package on: release: - types: [created] + types: [published] jobs: deploy: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7daa140..83b3215 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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/upload-release-assets@v2.0 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 \ No newline at end of file + files: "dist/*.tar.gz;dist/*.whl" + repo-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file