diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 8adc9607..d9be64c3 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -9,8 +9,9 @@ name: Release-Executable # https://anshumanfauzdar.medium.com/using-github-actions-to-bundle-python-application-into-a-single-package-and-automatic-release-834bd42e0670 on: - release: - types: [published] + push: + tags: + - '*' workflow_dispatch: jobs: @@ -94,10 +95,20 @@ jobs: with: name: ${{ matrix.OUT_FILE_NAME }} path: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }} - + - name: Upload artifact for Mac if: matrix.TARGET == 'macos' uses: actions/upload-artifact@v4 with: name: ${{ matrix.BUNDLE_NAME }} path: ./dist/${{ matrix.TARGET }}/${{ matrix.BUNDLE_NAME }}.tar + + - name: Upload binaries to release + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./dist/${{ matrix.TARGET }}/${{ matrix.OUT_FILE_NAME }}/ + tag: ${{ github.ref_name }} + overwrite: true + promote: true +