Skip to content

Commit

Permalink
Fix yet another issue with build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anergictcell committed Feb 10, 2021
1 parent 937f1ec commit 42d3971
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,16 @@ jobs:
with:
python-version: 3.8
- name: Build project
id: build_package
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install sdist wheel
python setup.py sdist bdist_wheel
TARNAME=$(ls -1 dist/pyhpo*.tar.gz | head -n 1)
echo "::set-output name=tar_filename::$TARNAME"
WHEELNAME=$(ls -1 dist/pyhpo*.whl | head -n 1)
echo "::set-output name=wheel_filename::$WHEELNAME"
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -40,8 +45,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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/pyhpo-${{ github.ref }}.tar.gz
asset_name: pyhpo-${{ github.ref }}.tar.gz
asset_path: ./${{ steps.build_package.outputs.tar_filename }}
asset_name: ${{ steps.build_package.outputs.tar_filename }}
asset_content_type: application/x-tgz
- name: Upload wheel Asset
id: upload-wheel-asset
Expand All @@ -50,8 +55,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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/pyhpo-${{ github.ref }}-py3-none-any.whl
asset_name: pyhpo-${{ github.ref }}-py3-none-any.whl
asset_path: ./${{ steps.build_package.outputs.wheel_filename }}
asset_name: ${{ steps.build_package.outputs.wheel_filename }}
asset_content_type: application/wheel
- name: Publish distribution to PyPI
id: upload-package-to-PyPI
Expand Down

0 comments on commit 42d3971

Please sign in to comment.