forked from SciTools/cartopy
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (33 loc) · 1019 Bytes
/
release.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
name: Build and upload to PyPI
# Only build on tagged releases
on:
push:
tags:
- '*'
jobs:
build:
name: Build sdist
runs-on: ubuntu-18.04
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test-environment
python-version: ${{ matrix.python-version }}
channels: conda-forge/label/testing,conda-forge
- name: Install dependencies
run: |
PACKAGES="cython fiona matplotlib-base numpy pyproj pykdtree scipy"
PACKAGES="$PACKAGES owslib pep8 pillow pyshp pytest"
PACKAGES="$PACKAGES pytest-xdist setuptools_scm shapely<2"
conda install $PACKAGES
- name: Create sdist
run: python setup.py build_ext sdist
- name: Publish Package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}