-
Notifications
You must be signed in to change notification settings - Fork 3
72 lines (70 loc) · 2.26 KB
/
pythonpublish.yml
File metadata and controls
72 lines (70 loc) · 2.26 KB
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
64
65
66
67
68
69
70
71
72
name: Upload Python Package
on:
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools Cython numpy scipy wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist
twine upload dist/*
deploy_conda_linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: [3.8, 3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python with Conda ${{ matrix.python-version }}
uses: s-weigand/setup-conda@v4
with:
update-conda: true
python-version: ${{ matrix.python-version }}
activate-conda: true
- name: Install dependencies
run: |
conda install conda-build conda-verify anaconda-client
- name: Build and publish
env:
ANACONDA_API_TOKEN: ${{ secrets.CONDA_TOKEN }}
run: |
conda build -c mnishida -c defaults -c conda-forge --output-folder conda_pkg conda_pkg
anaconda upload conda_pkg/linux-64/pymwm-*.tar.bz2
# deploy_conda_windows:
# runs-on: windows-latest
# strategy:
# max-parallel: 3
# matrix:
# python-version: [3.8, 3.9]
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python with Conda ${{ matrix.python-version }}
# uses: s-weigand/setup-conda@v1
# with:
# update-conda: true
# python-version: ${{ matrix.python-version }}
# activate-conda: true
# - name: Install dependencies
# run: |
# conda install conda-build conda-verify anaconda-client
# - name: Build and publish
# env:
# ANACONDA_API_TOKEN: ${{ secrets.CONDA_TOKEN }}
# run: |
# conda build -c mnishida -c defaults -c conda-forge --output-folder conda_pkg conda_pkg
# anaconda upload conda_pkg/win-64/pymwm-*.tar.bz2