Skip to content

Commit

Permalink
Fix build script
Browse files Browse the repository at this point in the history
- Ubuntu: PyPI and conda packages should be working, testing with wildcard filename
- Windows: disable pip package upload (worked before because it was skipped)
- Windows: try build and upload with powershell
  • Loading branch information
talmo committed Dec 4, 2020
1 parent b895793 commit 838f646
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ jobs:
which python
conda info
# Build pip wheel (Windows)
- name: Build pip wheel
if: matrix.os == 'windows-latest'
# Build pip wheel (Ubuntu)
- name: Build pip wheel (Ubuntu)
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: |
python setup.py bdist_wheel
# Upload pip wheel
- name: Upload pip wheel (Windows)
if: matrix.os == 'windows-latest'
# Upload pip wheel (Ubuntu)
- name: Upload pip wheel (Ubuntu)
if: matrix.os == 'ubuntu-latest'
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
shell: bash -l {0}
Expand Down Expand Up @@ -86,10 +86,10 @@ jobs:
if: matrix.os == 'windows-latest'
env:
ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }}
shell: bash -l {0}
shell: powershell
run: |
anaconda login --username sleap --password "$ANACONDA_LOGIN"
anaconda upload "build\win-64\sleap-1.1.0a4-py36_0.tar.bz2" --label dev
anaconda upload "build\win-64\sleap-1.1.0a5-py36_0.tar.bz2" --label dev
anaconda logout
- name: Upload conda package (Ubuntu)
if: matrix.os == 'ubuntu-latest'
Expand All @@ -98,5 +98,5 @@ jobs:
shell: bash -l {0}
run: |
anaconda login --username sleap --password "$ANACONDA_LOGIN"
anaconda upload build/linux-64/sleap-1.1.0a4-py36_0.tar.bz2 --label dev
anaconda upload build/linux-64/*.tar.bz2 --label dev
anaconda logout
2 changes: 1 addition & 1 deletion sleap/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
Must be a semver string, "aN" should be appended for alpha releases.
"""
__version__ = "1.1.0a4"
__version__ = "1.1.0a5"

0 comments on commit 838f646

Please sign in to comment.