Skip to content

Commit

Permalink
windows version 2
Browse files Browse the repository at this point in the history
  • Loading branch information
FL33TW00D committed Jun 19, 2021
1 parent fbc7bd2 commit f20f248
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
os: [ubuntu-latest, macos-latest, windows-latest]
exclude:
- os: windows-latest
python-version: [3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1

Expand Down Expand Up @@ -115,8 +119,6 @@ jobs:
if: matrix.os != 'windows-latest'
run: pip install target/wheels/rust_dtw*.whl

#Remove this in favour of an up to date action, this is no longer
#maintained
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -126,13 +128,21 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: PyPi publish nix
if: matrix.os != 'windows-latest' && github.event_name == 'release' && github.event.action == 'created'
if: matrix.os != 'windows-latest'
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: poetry run maturin publish --username __token__ -i python${{ matrix.python-version }}

- name: PyPi publish Windows
if: matrix.os == 'windows-latest' && matrix.python_version == 3.9 && github.event_name == 'release' && github.event.action == 'created'
- name: PyPi publish nix
if: matrix.os != 'windows-latest'
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: poetry run maturin publish --username __token__ -i python${{ matrix.python-version }}

#windows autodiscovers 4 python versions
- name: PyPi publish windows
if: matrix.os == 'windows-latest'
env:
MATURIN_PASSWORD: ${{ secrets.PYPI }}
run: poetry run maturin publish --username __token__

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rust-dtw"
version = "0.1.10"
version = "0.1.11"
authors = ["Christopher Fleetwood"]
edition = "2018"
description = "A rust implementation of dynamic time warping with python bindings!"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ build-backend = "maturin"

[tool.poetry]
name = "rust-dtw"
version = "0.1.10"
version = "0.1.11"
description = "A rust implementation of dynamic time warping with python bindings!"
license = "MIT"
readme = "README.md"
Expand Down

0 comments on commit f20f248

Please sign in to comment.