-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (43 loc) · 1.25 KB
/
setuptools_build_workflow.yml
File metadata and controls
43 lines (43 loc) · 1.25 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
name: Setuptools Build
on:
release:
types: [published]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache conda
uses: actions/cache@v2
with:
path: ~/conda_pkgs_dir
key: conda-ubuntu-latest-python-3.8-${{ hashFiles('environment-ci.yml') }}
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
activate-environment: build_environment
python-version: 3.8
environment-file: build_environment.yml
use-only-tar-bz2: true
- name: conda info
shell: bash -l {0}
run: conda info --all
- name: Build pypi wheel package
shell: bash -l {0}
run: python setup.py build bdist_wheel
- name: tags
shell: bash -l {0}
run: git tag
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.CAI_PYPI_TOKEN }}
skip_existing: true
repository_url: https://test.pypi.org/legacy/