diff --git a/.github/workflows/release-brew.yaml b/.github/workflows/release-brew.yaml index d6c093b..ba99ca7 100644 --- a/.github/workflows/release-brew.yaml +++ b/.github/workflows/release-brew.yaml @@ -141,12 +141,6 @@ jobs: run: | echo "bottle_name=$(ls *.tar.gz)" >> $GITHUB_OUTPUT - - name: Get File Name - id: get_file_name - run: | - file_name="$(cat *.json | jq -r '."${{ env.TAP }}/${{ env.FORMULA }}".bottle.tags[].filename')" - echo "file_name=$file_name" >> $GITHUB_OUTPUT - - name: Upload bottles as artifact uses: actions/upload-artifact@v4 with: @@ -154,13 +148,9 @@ jobs: path: '*.bottle.*' - name: Upload release binary - # this github action is deprecated, but there is no obvious replacement - uses: actions/upload-release-asset@v1.0.2 + uses: softprops/action-gh-release@v2 with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ${{ steps.get_package_path.outputs.bottle_name }} - asset_name: ${{ steps.get_file_name.outputs.file_name }} - asset_content_type: application/x-gzip + files: ${{ steps.get_package_path.outputs.bottle_name }} update-pr: needs: build-bottle diff --git a/.github/workflows/release-pypi.yaml b/.github/workflows/release-pypi.yaml index 54cecec..7db95c1 100644 --- a/.github/workflows/release-pypi.yaml +++ b/.github/workflows/release-pypi.yaml @@ -35,12 +35,8 @@ jobs: run: | echo "package_name=$(ls dist/*.whl | cut -d / -f 2)" >> $GITHUB_OUTPUT - name: Upload release binary - # this github action is deprecated, but there is no obvious replacement - uses: actions/upload-release-asset@v1.0.2 + uses: softprops/action-gh-release@v2 with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: dist/${{ steps.get_package_name.outputs.package_name }} - asset_name: ${{ steps.get_package_name.outputs.package_name }} - asset_content_type: application/zip + files: dist/${{ steps.get_package_name.outputs.package_name }} - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1