From 2c853e7588585f802ae86bafd7c5e43a6c6170d1 Mon Sep 17 00:00:00 2001 From: lmoretti96 <51789626+lmoretti96@users.noreply.github.com> Date: Sun, 14 Mar 2021 18:16:53 +0100 Subject: [PATCH] Update Build_Release.yml --- .github/workflows/Build_Release.yml | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/Build_Release.yml b/.github/workflows/Build_Release.yml index 8a6cff0..12cb5ca 100644 --- a/.github/workflows/Build_Release.yml +++ b/.github/workflows/Build_Release.yml @@ -1,4 +1,5 @@ -on: + + on: push: # Sequence of patterns matched against refs/tags #tags: @@ -31,16 +32,13 @@ jobs: GITHUB_TOKEN: ${{ secrets.PYCTBN_TOK }} with: tag_name: v.${{ github.ref }} - release_name: Release v ${{ github.ref }} + release_name: Release v- ${{ github.ref }} draft: false prerelease: false - name: Upload Release Asset id: upload-release-asset - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.PYCTBN_TOK }} + uses: AButler/upload-release-assets@v2.0 with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: ./dist/PyCTBN-1.0.tar.gz - asset_name: PyCTBN-1.0.tar.gz - asset_content_type: application/tar+gzip + files: 'dist/*;' + repo-token: ${{ secrets.PYCTBN_TOK }} +