Skip to content
Snippets Groups Projects
Commit 838f6468 authored by Talmo Pereira's avatar Talmo Pereira
Browse files

Fix build script

- 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
parent b8957938
Branches
Tags v1.1.0a5
No related merge requests found
...@@ -45,16 +45,16 @@ jobs: ...@@ -45,16 +45,16 @@ jobs:
which python which python
conda info conda info
# Build pip wheel (Windows) # Build pip wheel (Ubuntu)
- name: Build pip wheel - name: Build pip wheel (Ubuntu)
if: matrix.os == 'windows-latest' if: matrix.os == 'ubuntu-latest'
shell: bash -l {0} shell: bash -l {0}
run: | run: |
python setup.py bdist_wheel python setup.py bdist_wheel
# Upload pip wheel # Upload pip wheel (Ubuntu)
- name: Upload pip wheel (Windows) - name: Upload pip wheel (Ubuntu)
if: matrix.os == 'windows-latest' if: matrix.os == 'ubuntu-latest'
env: env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
shell: bash -l {0} shell: bash -l {0}
...@@ -86,10 +86,10 @@ jobs: ...@@ -86,10 +86,10 @@ jobs:
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
env: env:
ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }} ANACONDA_LOGIN: ${{ secrets.ANACONDA_LOGIN }}
shell: bash -l {0} shell: powershell
run: | run: |
anaconda login --username sleap --password "$ANACONDA_LOGIN" 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 anaconda logout
- name: Upload conda package (Ubuntu) - name: Upload conda package (Ubuntu)
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
...@@ -98,5 +98,5 @@ jobs: ...@@ -98,5 +98,5 @@ jobs:
shell: bash -l {0} shell: bash -l {0}
run: | run: |
anaconda login --username sleap --password "$ANACONDA_LOGIN" 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 anaconda logout
...@@ -10,4 +10,4 @@ For example, if you set the version to X.Y.Z, then the tag should be "vX.Y.Z". ...@@ -10,4 +10,4 @@ For example, if you set the version to X.Y.Z, then the tag should be "vX.Y.Z".
Must be a semver string, "aN" should be appended for alpha releases. Must be a semver string, "aN" should be appended for alpha releases.
""" """
__version__ = "1.1.0a4" __version__ = "1.1.0a5"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment