Skip to content

Commit

Permalink
WHEEL_NAME is set correctly, but still retrieved as blank.
Browse files Browse the repository at this point in the history
  • Loading branch information
rturrado committed Jan 8, 2024
1 parent a7fc894 commit dbf7f3f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ jobs:
- name: Install dependencies
run: |
brew install bison flex
echo "/usr/local/opt/bison/bin" >> $GITHUB_PATH
echo "/usr/local/opt/flex/bin" >> $GITHUB_PATH
echo "/usr/local/opt/bison/bin" >> "$GITHUB_PATH"
echo "/usr/local/opt/flex/bin" >> "$GITHUB_PATH"
python -m pip install --upgrade pip conan setuptools wheel
- name: Build wheel
run: python setup.py bdist_wheel
Expand All @@ -39,22 +39,22 @@ jobs:
working-directory: pybuild/dist/
run: |
echo "WHEEL_NAME=$(ls *.whl)"
echo "WHEEL_NAME=$(ls *.whl)" >> $GITHUB_OUTPUT
echo "WHEEL_NAME=$(ls *.whl)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v3
env:
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
name: pypi-macos-py${{ matrix.python }}
path: pybuild/dist/$WHEEL_NAME
path: "pybuild/dist/$WHEEL_NAME"
- uses: actions/upload-release-asset@v1
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: pybuild/dist/$WHEEL_NAME
asset_name: $WHEEL_NAME
asset_path: "pybuild/dist/$WHEEL_NAME"
asset_name: "$WHEEL_NAME"
asset_content_type: application/zip

manylinux-x64:
Expand Down Expand Up @@ -95,22 +95,22 @@ jobs:
working-directory: wheelhouse
run: |
echo "WHEEL_NAME=$(ls *.whl)"
echo "WHEEL_NAME=$(ls *.whl)" >> $GITHUB_OUTPUT
echo "WHEEL_NAME=$(ls *.whl)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v3
env:
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
name: pypi-linux-${{ matrix.cpython_version }}
path: wheelhouse/$WHEEL_NAME
path: "wheelhouse/$WHEEL_NAME"
- uses: actions/upload-release-asset@v1
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: wheelhouse/$WHEEL_NAME
asset_name: $WHEEL_NAME
asset_path: "wheelhouse/$WHEEL_NAME"
asset_name: "$WHEEL_NAME"
asset_content_type: application/zip

manylinux-arm64:
Expand Down Expand Up @@ -163,22 +163,22 @@ jobs:
working-directory: wheelhouse
run: |
echo "WHEEL_NAME=$(ls *.whl)"
echo "WHEEL_NAME=$(ls *.whl)" >> $GITHUB_OUTPUT
echo "WHEEL_NAME=$(ls *.whl)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v3
env:
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
name: pypi-linux-${{ matrix.cpython_version }}
path: wheelhouse/$WHEEL_NAME
path: "wheelhouse/$WHEEL_NAME"
- uses: actions/upload-release-asset@v1
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: wheelhouse/$WHEEL_NAME
asset_name: $WHEEL_NAME
asset_path: "wheelhouse/$WHEEL_NAME"
asset_name: "$WHEEL_NAME"
asset_content_type: application/zip

windows-x64:
Expand Down Expand Up @@ -207,22 +207,22 @@ jobs:
working-directory: pybuild/dist/
run: |
echo "WHEEL_NAME=$(Get-ChildItem -name *.whl)"
echo "WHEEL_NAME=$(Get-ChildItem -name *.whl)" >> $GITHUB_OUTPUT
echo "WHEEL_NAME=$(Get-ChildItem -name *.whl)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v3
env:
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
name: pypi-windows-py${{ matrix.python }}
path: pybuild/dist/$WHEEL_NAME
path: "pybuild/dist/$WHEEL_NAME"
- uses: actions/upload-release-asset@v1
if: ${{ github.event_name == 'release' && github.event.action == 'created' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WHEEL_NAME: ${{ steps.wheel.outputs.WHEEL_NAME }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: pybuild/dist/$WHEEL_NAME
asset_name: $WHEEL_NAME
asset_path: "pybuild/dist/$WHEEL_NAME"
asset_name: "$WHEEL_NAME"
asset_content_type: application/zip

publish:
Expand Down

0 comments on commit dbf7f3f

Please sign in to comment.