-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (52 loc) · 1.56 KB
/
deploy-pypi-on-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Deploy bindings wheels on pypi from windows
on:
push:
branches:
- master
jobs:
deploy-wheels:
strategy:
matrix:
os: [windows-latest]
runs-on:
- windows-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
#ref: ${{ github.head_ref }}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Install dependencies
run: |
pip3 install setuptools wheel twine bump2version
- name: Update setup.py and Cargo.toml versions
run: |
cd .\cryptatools-core\
bump2version patch .\Cargo.toml .\setup.py
cd ..
#- uses: actions/checkout@master
# with:
# fetch-depth: 2
#- uses: stefanzweifel/git-auto-commit-action@v4
# with:
# commit_message: Change version with bump2version
# commit_user_name: gogo2464
# commit_user_email: [email protected]
# commit_author: gogo2464 <[email protected]>
# commit_options: '--amend --no-edit'
# push_options: '--force'
# skip_fetch: true
- name: Build package
run: |
python .\cryptatools-core\setup.py bdist_wheel --verbose ;
- name: Upload package
run: |
$wheelFile = Get-ChildItem -Path .\dist\ -Recurse -Include * ;
#python -m twine upload $wheelFile --username gogo2464 --password ${{ secrets.PYPI_GOGO2464_PASSWORD }} --verbose ;